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

This commit is contained in:
Vincent Povirk 2009-12-11 11:47:59 -06:00 committed by Alexandre Julliard
parent 9727750c79
commit 6f9533feb1
1 changed files with 8 additions and 0 deletions

View File

@ -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.