Commit 43b55769 authored by Ulrich Czekalla's avatar Ulrich Czekalla Committed by Alexandre Julliard

Duplicate Windows behaviour and use SendMessage for the SC_CLOSE

system command instead of PostMessage.
parent 7e7b8cf4
...@@ -445,7 +445,7 @@ static void handle_wm_protocols_message( HWND hwnd, XClientMessageEvent *event ) ...@@ -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 * and we are in managed mode. This is to disallow applications from
* being closed by the window manager while in a modal state. * 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)) else if (protocol == x11drv_atom(WM_TAKE_FOCUS))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment