Paul Chitescu : winex11.drv: Post a WM_SYSCOMMAND SC_CLOSE when the window manager asks to close a window .
Alexandre Julliard
julliard at winehq.org
Wed Jun 16 13:23:21 CDT 2010
Module: wine
Branch: master
Commit: 02674b2b95a4a9125af44470c14ccbcef9608c8d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=02674b2b95a4a9125af44470c14ccbcef9608c8d
Author: Paul Chitescu <paulc at voip.null.ro>
Date: Wed Jun 16 11:06:15 2010 +0300
winex11.drv: Post a WM_SYSCOMMAND SC_CLOSE when the window manager asks to close a window.
---
dlls/winex11.drv/event.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/dlls/winex11.drv/event.c b/dlls/winex11.drv/event.c
index 5bb1ecf..64d1992 100644
--- a/dlls/winex11.drv/event.c
+++ b/dlls/winex11.drv/event.c
@@ -553,11 +553,7 @@ static void handle_wm_protocols( HWND hwnd, XClientMessageEvent *event )
}
}
- /* Simulate pressing Alt+F4 */
- keybd_event(VK_MENU, 0, 0, 0);
- keybd_event(VK_F4, 0, 0, 0);
- keybd_event(VK_F4, 0, KEYEVENTF_KEYUP, 0);
- keybd_event(VK_MENU, 0, KEYEVENTF_KEYUP, 0);
+ PostMessageW( hwnd, WM_SYSCOMMAND, SC_CLOSE, 0 );
}
}
else if (protocol == x11drv_atom(WM_TAKE_FOCUS))
More information about the wine-cvs
mailing list