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

This commit is contained in:
Paul Chitescu 2010-06-16 11:06:15 +03:00 committed by Alexandre Julliard
parent 555e21307e
commit 02674b2b95
1 changed files with 1 additions and 5 deletions

View File

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