X11DRV: SC_CLOSE system command
Ulrich Czekalla
ulrich.czekalla at utoronto.ca
Fri Feb 18 09:08:25 CST 2005
ChangeLog:
Ulrich Czekalla <ulrich at codeweavers.com>
Duplicate Windows behaviour and use SendMessage for the SC_CLOSE system
command instead of PostMessage
-------------- next part --------------
Index: dlls/x11drv/event.c
===================================================================
RCS file: /home/wine/wine/dlls/x11drv/event.c,v
retrieving revision 1.44
diff -u -p -r1.44 event.c
--- dlls/x11drv/event.c 28 Jan 2005 17:25:50 -0000 1.44
+++ dlls/x11drv/event.c 18 Feb 2005 15:02:48 -0000
@@ -445,7 +445,7 @@ static void handle_wm_protocols_message(
* and we are in managed mode. This is to disallow applications from
* being closed by the window manager while in a modal state.
*/
- if (IsWindowEnabled(hwnd)) PostMessageW( hwnd, WM_SYSCOMMAND, SC_CLOSE, 0 );
+ if (IsWindowEnabled(hwnd)) SendMessageW( hwnd, WM_SYSCOMMAND, SC_CLOSE, 0 );
}
else if (protocol == x11drv_atom(WM_TAKE_FOCUS))
{
More information about the wine-patches
mailing list