https://bugs.winehq.org/show_bug.cgi?id=42459
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #3 from Zebediah Figura z.figura12@gmail.com --- Created attachment 59063 --> https://bugs.winehq.org/attachment.cgi?id=59063 Simple testcase showing the underlying problem
I came across a similar bug with Office 2010. I can reliably reproduce it in both 2007 and 2010 by opening Excel, selecting View -> New Window, and then switching back and forth between the two windows. This causes fake windows to be created corresponding to the sheets with the same size and symptoms as those described.
The problem seems to be that Office is attempting to create fake windows to correspond to the items in the taskbar (whereas the real windows have no taskbar icon), such that when a taskbar window is selected (or alt-tabbed to) it redirects the WM_SYSCOMMAND to the other window. WINE seems to be behaving correctly in this respect (although it's possible that it isn't?) in that it sets the window data correctly, but it doesn't prevent X11 from showing the fake window regardless (and possibly can't?).
Attached is a very simple test case that demonstrates the underlying problem. The program creates a minimized window, and when receiving a SC_RESTORE command immediately returns 0. On Windows this should prevent the window from being restored, but on Wine it doesn't. Note that the window reports its location [correctly] as (-32000,-32000) despite actually being in the center of the screen.