Skip to content

Windows shutdown dialog - #2

Open
Sylphera wants to merge 2 commits into
nunreasonable:windowsfrom
Sylphera:pr/qs-tray-close-20261122
Open

Sylphera wants to merge 2 commits into
nunreasonable:windowsfrom
Sylphera:pr/qs-tray-close-20261122

Conversation

@Sylphera

Copy link
Copy Markdown
AI summary (GPT-6)

The Windows tray hook forwards WM_CLOSE to Explorer's taskbar when Quickshell is not already marked as stopping. This can cause Explorer to open the native "Shut Down Windows" dialog when Task Scheduler stops or restarts the shell

The fix consumes WM_CLOSE locally instead of forwarding it. The existing shutdown path, which destroys the hook window when gStopping is set, remains unchanged

This issue was also observed on fresh installations of the original Windows port

To test: restart the shell through its normal restart mechanism and check that the Windows shutdown dialog no longer appears

Model: GPT-6. Files changed: src/windows/services/systray/hook.cpp

@Sylphera

Copy link
Copy Markdown
Author

One thing I'm not entirely sure about is whether this issue also occurs on a completely unmodified upstream installation, or if it's a regression caused by changes in my local setup

I encountered the shutdown dialog during shell restarts, and this change fixed it, but I haven't isolated the original cause well enough to confirm that the fix is necessary upstream

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