From 983a8b5888bc099fe022c57d3c92d00513868542 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 23 Feb 2005 21:47:32 +0000 Subject: [PATCH] Revert SC_CLOSE change, this is causing deadlocks. --- dlls/x11drv/event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/x11drv/event.c b/dlls/x11drv/event.c index 95cc0339c5d..15361ecc2b9 100644 --- a/dlls/x11drv/event.c +++ b/dlls/x11drv/event.c @@ -445,7 +445,7 @@ static void handle_wm_protocols_message( HWND hwnd, XClientMessageEvent *event ) * 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)) SendMessageW( hwnd, WM_SYSCOMMAND, SC_CLOSE, 0 ); + if (IsWindowEnabled(hwnd)) PostMessageW( hwnd, WM_SYSCOMMAND, SC_CLOSE, 0 ); } else if (protocol == x11drv_atom(WM_TAKE_FOCUS)) {