Commit 02674b2b authored by Paul Chitescu's avatar Paul Chitescu Committed by Alexandre Julliard

winex11.drv: Post a WM_SYSCOMMAND SC_CLOSE when the window manager asks to close a window.

parent 555e2130
......@@ -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))
......
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