Skip to content

Fix message box appearing behind undocked audio visualizer (#12268)#12273

Merged
niksedk merged 1 commit into
mainfrom
fix/messagebox-behind-undocked-audiovisualizer-12268
Jul 8, 2026
Merged

Fix message box appearing behind undocked audio visualizer (#12268)#12273
niksedk merged 1 commit into
mainfrom
fix/messagebox-behind-undocked-audiovisualizer-12268

Conversation

@niksedk

@niksedk niksedk commented Jul 8, 2026

Copy link
Copy Markdown
Member

Problem

Fixes #12268. When the audio visualizer is undocked, message boxes appear behind it instead of on top.

Cause

The undocked audio visualizer (and video player) float on top of the main window via WindowService.KeepTopmostWhileOwnerActive, which sets Topmost while the owner or the tool window is active. Regular dialogs go through WindowService.ShowDialogAsync, which applies the same helper to the dialog so it stays above the floating tool windows (the #11971 fix).

But MessageBox.Show bypasses WindowService — it constructs the window and calls ShowDialog(owner) directly — so message boxes had no such protection and opened behind the undocked audio visualizer.

Fix

Apply the same KeepTopmostWhileOwnerActive(msgBox, owner) call in MessageBox.Show before ShowDialog, matching how the Settings/Shortcuts dialogs are handled. Since every message box in the app funnels through this single static method, this is a systematic fix covering all message boxes at once.

🤖 Generated with Claude Code

Message boxes went straight to ShowDialog without the
KeepTopmostWhileOwnerActive helper that WindowService.ShowDialogAsync
applies, so they opened behind the undocked audio visualizer (and video
player), which float on top of the main window. Apply the same helper in
MessageBox.Show; since all message boxes funnel through this method, this
covers them all at once.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@niksedk niksedk merged commit c0c6755 into main Jul 8, 2026
1 of 3 checks passed
@niksedk niksedk deleted the fix/messagebox-behind-undocked-audiovisualizer-12268 branch July 8, 2026 12:40
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.

SE 5.1.0 beta 11: Another item hides behind the undocked Audio visualizer

1 participant