Skip to content

fix: show notifications over fullscreen apps - #604

Open
Cyrene2008 wants to merge 1 commit into
fxsound2:develop/windowsfrom
Cyrene2008:fix/fullscreen-notification
Open

fix: show notifications over fullscreen apps#604
Cyrene2008 wants to merge 1 commit into
fxsound2:develop/windowsfrom
Cyrene2008:fix/fullscreen-notification

Conversation

@Cyrene2008

Copy link
Copy Markdown

Problem

FxSound notifications don't show over many/majority of windows in fullscreen (mpv, VLC, Firefox, Brave on Windows 11). When using Next/Previous Preset keyboard shortcuts while in fullscreen, you cannot see which preset you're on.

Root Cause

FxSystemTrayView::showNotification() calls SHQueryUserNotificationState() which returns QUNS_RUNNING_D3D_FULL_SCREEN when any fullscreen app is active. The notification is silently discarded with an early
eturn — no fallback, no user feedback.

Fix

Remove the SHQueryUserNotificationState guard. The notification component (FxNotification) already has setAlwaysOnTop(true) and �ddToDesktop(0) with oFront(true), which is sufficient for borderless fullscreen apps. The notification is a small, non-intrusive overlay that auto-hides in 7-8 seconds and does not steal focus — there is no good reason to suppress it during fullscreen.

Testing

  • Built Release x64 successfully (VS 2026 BuildTools / v145 / SDK 10.0.26100 / JUCE 6.1.6)
  • No other references to SHQueryUserNotificationState in the codebase — change is isolated

Fixes #596

…cationState guard

The SHQueryUserNotificationState API returns QUNS_RUNNING_D3D_FULL_SCREEN
when any fullscreen app is active, causing the notification to be silently
discarded. The FxNotification component already has setAlwaysOnTop(true)
and addToDesktop(0) with toFront(true), which is sufficient for borderless
fullscreen apps. The guard was unnecessarily suppressing notifications for
a non-intrusive, auto-hiding overlay that does not steal focus.
@bvijay74
bvijay74 changed the base branch from main to develop/windows August 29, 2026 16:34
@bvijay74

bvijay74 commented Sep 2, 2026

Copy link
Copy Markdown
Member

With this change FxSound notification will be shown even in full screen mode and presentation mode which is not the correct application behaviour.
We can enable the Shell_NotifyIcon path to show the notification tooltip. This will ensure that the notifications are displayed as per Windows 11 focus and do not disturb settings. But several users were against using OS balloon notifications.

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.

FxSound notifications don't show over many windows in fullscreen?

2 participants