Skip to content
Discussion options

You must be logged in to vote

The floating widget only gets pushed to the top of the z-order at specific moments (when it's created/shown, when you drag it, when DPI/monitor settings change, or when it auto-ejects off the taskbar) - it isn't continuously kept on top. Source: src/window/positioning.rs#L314-L325 does a one-shot SetWindowPos(hwnd, HWND_TOPMOST, ...), and the only other spot that reasserts topmost, sync_theme_window_visibility, explicitly skips windows that are already visible (line 375).

The Windows taskbar (Shell_TrayWnd) is topmost too, and when you click it, Windows moves it to the front of the topmost band. Since the widget's own "stay on top" call already fired earlier and nothing re-fires it afterw…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Gorgo126
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants