winex11.drv: Post a WM_SYSCOMMAND SC_CLOSE when the window manager asks to close a window.
This commit is contained in:
parent
555e21307e
commit
02674b2b95
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue