11 Dec
2009
11 Dec
'09
10:55 a.m.
"Vincent Povirk" <vincent(a)codeweavers.com> writes:
@@ -516,6 +516,14 @@ static void handle_wm_protocols( HWND hwnd, XClientMessageEvent *event ) HMENU hSysMenu; POINT pt;
+ 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. */ + PostMessageW( hwnd, WM_X11DRV_DELETE_WINDOW, 0, 0 ); + return; + }
You could just as well send the WM_SYSCOMMAND directly. -- Alexandre Julliard julliard(a)winehq.org