GNOME Bugzilla – Bug 505928
Right-clicking taskbar entry for minimized window causes weird state
Last modified: 2008-01-31 22:43:42 UTC
Minimizing a window to the taskbar and then right-clicking its taskbar entry causes the window to re-appear on the screen, but not redraw its contents immediately. The popup menu appears over the taskbar where you right-clicked. Once you dismiss that menu, the window contents will redraw correctly. I've narrowed this down to a couple specific things, and I'll try to get a patch up soon. Just wanted to document the problem in Bugzilla now.
Created attachment 103109 [details] [review] Proposed patch I want to do more testing tomorrow, but here's where I'm at right now. What's happening is that whenever we receive WM_ACTIVATE where LOWORD (wParam) == WA_ACTIVE then we react. However, apparently Windows issues this notification if you right-click on the taskbar entry as well as when you left-click on it. The right click obviously blocks the UI. Seems that using WM_SYSCOMMAND we can check for SC_RESTORE without receiving any spurious events when we right click. What still needs to be looked into is programmatic showing/hiding of windows using ShowWindow ().
Created attachment 104131 [details] [review] Improved patch This patch adds handling for WM_SIZE so when the window is programmatically shown or hidden it will work as expected.