Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notifyicon: recreate when explorer.exe crashes #749

Merged
merged 1 commit into from Jan 11, 2021

Conversation

zx2c4
Copy link
Contributor

@zx2c4 zx2c4 commented Jan 4, 2021

According to MSDN, we receive a TaskbarCreated message after Windows recreates the taskbar, which can happen if explorer.exe crashes or even if the DPI changes. When this happens, we're supposed to create a new notify icon; otherwise the previous one is nowhere to be found. This commit listens for that message and recreates the state accordingly.

Reported-by: @vmsh0
Diagnosed-by: @rozmansi

According to [1], we receive a TaskbarCreated message after Windows
recreates the taskbar, which can happen if explorer.exe crashes or even
if the DPI changes. When this happens, we're supposed to create a new
notify icon; otherwise the previous one is nowhere to be found. This
commit listens for that message and recreates the state accordingly.

[1] https://docs.microsoft.com/en-us/windows/win32/shell/taskbar?redirectedfrom=MSDN#taskbar-creation-notification

Reported-by: Riccardo Paolo Bestetti <pbl@bestov.io>
Diagnosed-by: Simon Rozman <simon@rozman.si>
@zx2c4
Copy link
Contributor Author

zx2c4 commented Jan 7, 2021

Ping @lxn

@lxn lxn merged commit 5023cd5 into lxn:master Jan 11, 2021
@lxn
Copy link
Owner

lxn commented Jan 11, 2021

Oh, nice - thanks!

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.

None yet

2 participants