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.