lxn / walk

A Windows GUI toolkit for the Go Programming Language
Other
6.78k stars 885 forks source link

notifyicon: recreate when explorer.exe crashes #749

Closed zx2c4 closed 3 years ago

zx2c4 commented 3 years ago

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

zx2c4 commented 3 years ago

Ping @lxn

lxn commented 3 years ago

Oh, nice - thanks!