setup.ahk: set cursors to never blink
[sugaredwine.git] / patches / 0018-explorer-hack-to-keep-virtual-desktop-windows-open.patch
blob9ada7d10ad5343e46f934dc974eeaa678fd967ec
1 From cd5ac4501dc4ff9dd85c0459bd392c651b91098c 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
6 ---
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 43d6f8b..89bc91f 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
15 return 0;
17 case WM_CLOSE:
18 - PostQuitMessage(0);
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. */
24 + if (using_root)
25 + PostQuitMessage(0);
26 return 0;
28 case WM_SETCURSOR:
29 --
30 1.5.6.5