Revert SC_CLOSE change, this is causing deadlocks.
authorAlexandre Julliard <julliard@winehq.org>
Wed, 23 Feb 2005 21:47:32 +0000 (21:47 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 23 Feb 2005 21:47:32 +0000 (21:47 +0000)
dlls/x11drv/event.c

index 95cc0339c5da3f84d1e23e02cc48858ff9a77151..15361ecc2b9a8770494b30adb7248e03d59d915b 100644 (file)
@@ -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))
     {