[Bug 16343] Delphi applications disappear after desktop change and minimize

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Dec 15 09:52:43 CST 2008


http://bugs.winehq.org/show_bug.cgi?id=16343


Wolfgang Walter <wolfgang.walter at studentenwerk.mhn.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wolfgang.walter at studentenwer
                   |                            |k.mhn.de




--- Comment #7 from Wolfgang Walter <wolfgang.walter at 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.


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list