http://bugs.winehq.org/show_bug.cgi?id=16343
Summary: Delphi applications disappear after desktop change and minimize Product: Wine Version: 1.1.9 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: winex11.drv AssignedTo: wine-bugs@winehq.org ReportedBy: viktor.nagy@abmm.hu
Created an attachment (id=17652) --> (http://bugs.winehq.org/attachment.cgi?id=17652) Delphi 6 test application
Sometimes I work on linux using our special Delphi (6) applications from 1.1.3 the Wine is unuseable for me because of this.
I attach a sample application, I hope that it helps to fix this. It would be very important for me, thanks.
http://bugs.winehq.org/show_bug.cgi?id=16343
--- Comment #1 from Viktor Nagy viktor.nagy@abmm.hu 2008-12-05 05:03:09 --- Created an attachment (id=17653) --> (http://bugs.winehq.org/attachment.cgi?id=17653) Test application source
http://bugs.winehq.org/show_bug.cgi?id=16343
--- Comment #2 from Viktor Nagy viktor.nagy@abmm.hu 2008-12-05 05:07:49 --- Sorry for the bad english, I repeat the bug description:
Sometimes I work on linux using our special Delphi (6) applications. From 1.1.3 the Wine is unuseable for me because of this bug. After desktop switching the application disappears. This also happens sometimes after minimizing.
I attach a sample application, I hope that it helps to fix this. It would be very important for me, thanks.
http://bugs.winehq.org/show_bug.cgi?id=16343
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, testcase
http://bugs.winehq.org/show_bug.cgi?id=16343
--- Comment #3 from Austin English austinenglish@gmail.com 2008-12-05 12:04:59 --- Did this work in an older version of wine?
http://bugs.winehq.org/show_bug.cgi?id=16343
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #17653|text/plain |application/octet-stream mime type| |
http://bugs.winehq.org/show_bug.cgi?id=16343
--- Comment #4 from Paul Romanyszyn pgr@arcelectronicsinc.com 2008-12-05 18:48:30 --- See bug 15069. That regression affected Delphi's top level window and many different symptoms depending on the program(version of delphi). Comment 2 implies it worked per 1.1.3 which is about the version I use for my delphi programs.
http://bugs.winehq.org/show_bug.cgi?id=16343
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE
--- Comment #5 from Vitaliy Margolen vitaliy@kievinfo.com 2008-12-05 19:26:45 --- Duplicate
*** This bug has been marked as a duplicate of bug 15062 ***
http://bugs.winehq.org/show_bug.cgi?id=16343
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Vitaliy Margolen vitaliy@kievinfo.com 2008-12-05 19:26:58 --- Closing.
http://bugs.winehq.org/show_bug.cgi?id=16343
Wolfgang Walter wolfgang.walter@studentenwerk.mhn.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wolfgang.walter@studentenwer | |k.mhn.de
--- Comment #7 from Wolfgang Walter wolfgang.walter@studentenwerk.mhn.de 2008-12-15 09:52:43 --- 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.