http://bugs.winehq.org/show_bug.cgi?id=15062
Summary: Own applications lose main window when switching virtual desktop Product: Wine Version: 1.1.3 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: felix.saphir@presswatch.de
This might be related to bug 2368: We have a couple of applications built with Delphi 5 Professional (on Windows) running on our server (CentOS and KDE) with the help of Wine. Everything was fine until (and including) wine-1.1.1.
After building wine-1.1.3 from source (nothing special: "configure --prefix=/usr/local/wine-1.1.3", make depend, make and make install), these applications lose their main window when switching the virtual desktop, while e.g. notepad.exe does not. Everything left is the "Wine System Tray". This does not happen, if I dont't "Allow the window manager to control the windows" (winecfg).
I did a regression test, ending up at revision "[31b4061c9b0b9b960346f047c3d7afa9afe092f4] winex11: Fetch the current X window position on ShowWindow resulting from a window manager event."
I know, this is not necessarily an issue with Wine, since I could probably fix our own apps as well (If I knew where to start looking ;-) ).
http://bugs.winehq.org/show_bug.cgi?id=15062
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #1 from Vitaliy Margolen vitaliy@kievinfo.com 2008-08-29 13:24:36 --- Confirming - Delphi 5 losses it's windows that way too.
http://bugs.winehq.org/show_bug.cgi?id=15062
--- Comment #2 from Vitaliy Margolen vitaliy@kievinfo.com 2008-08-29 13:36:09 --- Created an attachment (id=15728) --> (http://bugs.winehq.org/attachment.cgi?id=15728) Exe of the sample test program
This is just a simple window without anything else.
http://bugs.winehq.org/show_bug.cgi?id=15062
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, regression
http://bugs.winehq.org/show_bug.cgi?id=15062
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |madewokherd@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=15062
--- Comment #3 from Dmitry Timoshkov dmitry@codeweavers.com 2008-09-02 02:38:54 --- If this is a regression please perform a regression test: http://wiki.winehq.org/RegressionTesting
http://bugs.winehq.org/show_bug.cgi?id=15062
--- Comment #4 from Felix Saphir felix.saphir@presswatch.de 2008-09-02 04:40:24 --- Sorry, I already did, see initial post. Do you need more information?
http://bugs.winehq.org/show_bug.cgi?id=15062
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |julliard@winehq.org
--- Comment #5 from Vitaliy Margolen vitaliy@kievinfo.com 2008-09-02 08:38:17 --- Adding author of the patch: commit 31b4061c9b0b9b960346f047c3d7afa9afe092f4 Author: Alexandre Julliard julliard@winehq.org Date: Thu Jul 31 11:40:49 2008 +0200
winex11: Fetch the current X window position on ShowWindow resulting from a window manager event.
This ensures that we get the correct size for maximized windows too, which cannot be done with SetWindowPlacement.
http://bugs.winehq.org/show_bug.cgi?id=15062
--- Comment #6 from Kirurgs edzis@inbox.lv 2008-09-06 16:55:34 --- PL/SQL Developer is affected too. Wine 1.1.4 doesn't solve the issue.
http://bugs.winehq.org/show_bug.cgi?id=15062
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |viktor.nagy@abmm.hu
--- Comment #7 from Vitaliy Margolen vitaliy@kievinfo.com 2008-12-05 19:26:45 --- *** Bug 16343 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=15062
Wolfgang Walter wolfgang.walter@studentenwerk.mhn.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wolfgang.walter@studentenwer | |k.mhn.de
--- Comment #8 from Wolfgang Walter wolfgang.walter@studentenwerk.mhn.de 2008-12-15 09:54:32 --- I have the same problem with an delphi application. To be more exactly the apps does not really disappear but is in iconic mode on the virtual desktop I switched to (I have kwin as windowsmanager).
I found that the following commit is the problem:
8d77c375b27adc490d24d7593769f4e149d4102c
Changing the line in handle_wm_state_notify()
SendMessageW( data->hwnd, WM_SYSCOMMAND, SC_MINIMIZE, 0 );
back to
ShowWindow( data->hwnd, SW_MINIMIZE );
makes the problem disappear.
I made a trace with unchanged 1.1.9 for the delphi application and for notepad and they behave different. With the delphi applications different hooks are called before
0025:Call window proc 0x350f39 (hwnd=0x10046,msg=WM_SYSCOMMAND,wp=0000f020,lp=00000000)
appears (with notepad this comes immediately), further there are a lot of hooks calls between
0025:Call window proc 0x350f39 (hwnd=0x10046,msg=WM_SYSCOMMAND,wp=0000f020,lp=00000000)
and
0025:Ret window proc 0x350f39 (hwnd=0x10046,msg=WM_SYSCOMMAND,wp=0000f020,lp=00000000) retval=00000000
I think that this is some sort of a race. The window manager has already switched to the other desktop when the application finally minimizes it's window.
http://bugs.winehq.org/show_bug.cgi?id=15062
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE
--- Comment #9 from Austin English austinenglish@gmail.com 2008-12-26 15:37:46 --- Dupe
*** This bug has been marked as a duplicate of bug 15069 ***
http://bugs.winehq.org/show_bug.cgi?id=15062
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Austin English austinenglish@gmail.com 2008-12-26 15:37:53 --- Closing.