Commit 6f9533fe authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

winex11.drv: Use the old method to delete the desktop window.

parent 9727750c
......@@ -507,6 +507,14 @@ static void handle_wm_protocols( HWND hwnd, XClientMessageEvent *event )
if (protocol == x11drv_atom(WM_DELETE_WINDOW))
{
if (hwnd == GetDesktopWindow())
{
/* The desktop window does not have a close button that we can
* pretend to click. Therefore, we simply send it a close command. */
SendMessageW(hwnd, WM_SYSCOMMAND, SC_CLOSE, 0);
return;
}
/* Ignore the delete window request if the window has been disabled
* and we are in managed mode. This is to disallow applications from
* being closed by the window manager while in a modal state.
......
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