Skip to content

fix: apply reliable Windows topmost window level - #1

Merged
KennyMcSimpson merged 1 commit into
mainfrom
maintenance/await-native-pin-state
Oct 24, 2026
Merged

KennyMcSimpson merged 1 commit into
mainfrom
maintenance/await-native-pin-state

Conversation

@KennyMcSimpson

Copy link
Copy Markdown
Owner

Problem

On Windows, the app used Electron's default floating window level for the always-on-top setting. That level does not consistently map to the native topmost style, so the preference could appear enabled while the window still fell behind other applications.

Changes

  • Use the Windows torn-off level when always-on-top is enabled, which maps to the native topmost style.
  • Route all native always-on-top updates through one helper, including docked and restored states.
  • Allow the Electron UI test to accept the one-device-pixel height rounding produced by Windows DPI scaling.

Verification

  • Core tests: 29 passed
  • Electron UI tests: 23 passed
  • Renderer errors: none
  • git diff --check: passed

@KennyMcSimpson
KennyMcSimpson merged commit e21d1a3 into main Oct 24, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant