https://bugs.winehq.org/show_bug.cgi?id=42459
Bug ID: 42459 Summary: Bogus/orphan small window sibling of Office 2007 applications Product: Wine Version: 2.1 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: ddascalescu+wine@gmail.com Distribution: ---
Created attachment 57299 --> https://bugs.winehq.org/attachment.cgi?id=57299 Excel orphan mini window
I can reproduce this reliably after working with Excel for a few minutes, and the steps are essentially switching between Excel and other applications in Ubuntu 16.04, using Alt+Tab and Alt+Esc. I don't have a precise repro sequence, but try to Alt+Tab and Alt+Esc to/from Excel a bunch of time.
Attached are the results - the initial orphan window, and what happens when I resize it (takes on the video memory behind).
https://bugs.winehq.org/show_bug.cgi?id=42459
--- Comment #1 from Dan Dascalescu ddascalescu+wine@gmail.com --- Created attachment 57300 --> https://bugs.winehq.org/attachment.cgi?id=57300 The orphan window, resized up
https://bugs.winehq.org/show_bug.cgi?id=42459
--- Comment #2 from Dan Dascalescu ddascalescu+wine@gmail.com --- Created attachment 57301 --> https://bugs.winehq.org/attachment.cgi?id=57301 Extra window that shows up when clicking on Excel in the taskbar
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.