1 From f2b287b2c7ccbd5e2633e3f382b7548c5cd4e85f Mon Sep 17 00:00:00 2001
2 From: Vincent Povirk <vincent@codeweavers.com>
3 Date: Fri, 26 Sep 2008 14:25:11 -0500
4 Subject: [PATCH] explorer: hack to keep virtual desktop windows open when processes close
7 programs/explorer/desktop.c | 8 +++++++-
8 1 files changed, 7 insertions(+), 1 deletions(-)
10 diff --git a/programs/explorer/desktop.c b/programs/explorer/desktop.c
11 index 3741315..5f1622c 100644
12 --- a/programs/explorer/desktop.c
13 +++ b/programs/explorer/desktop.c
14 @@ -71,7 +71,13 @@ static LRESULT WINAPI desktop_wnd_proc( HWND hwnd, UINT message, WPARAM wp, LPAR
19 +/* Horrible hack to keep virtual desktops open when the last process closes.
21 +When the user closes the desktop window, we get a WM_SYSCOMMAND message, which
22 +is handled separately. But when the last process closes, we get a WM_CLOSE. I'm
23 +taking advantage of this coincidence. */