Skip to content

feat: reassert window topmost when foreground changes#5

Merged
coldhighsun merged 1 commit into
mainfrom
feat/reassert-topmost-on-foreground-change
Jul 1, 2026
Merged

feat: reassert window topmost when foreground changes#5
coldhighsun merged 1 commit into
mainfrom
feat/reassert-topmost-on-foreground-change

Conversation

@coldhighsun

Copy link
Copy Markdown
Owner

Explorer.exe re-asserts the taskbar's own HWND_TOPMOST z-order whenever it becomes foreground, which can push the widget behind it even though WPF's Topmost flag is still true. Hook EVENT_SYSTEM_FOREGROUND via a low-level Win32 hook and re-apply HWND_TOPMOST reactively instead of polling.

Explorer.exe re-asserts the taskbar's own HWND_TOPMOST z-order whenever it
becomes foreground, which can push the widget behind it even though WPF's
Topmost flag is still true. Hook EVENT_SYSTEM_FOREGROUND via a low-level
Win32 hook and re-apply HWND_TOPMOST reactively instead of polling.
@coldhighsun coldhighsun merged commit 3e64163 into main Jul 1, 2026
3 checks passed
@coldhighsun coldhighsun deleted the feat/reassert-topmost-on-foreground-change branch July 1, 2026 10:03
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