[4/5] explorer: Keep shell desktops open when the last process closes.
Vincent Povirk
madewokherd at gmail.com
Tue Feb 18 17:04:50 CST 2014
-------------- next part --------------
From 8a629f62e650e3fa4c308a6964783c3ce7bd43bf Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Tue, 18 Feb 2014 16:27:48 -0600
Subject: [PATCH 4/6] explorer: Keep shell desktops open when the last process
closes.
---
programs/explorer/desktop.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/programs/explorer/desktop.c b/programs/explorer/desktop.c
index 199c938..a8ccd14 100644
--- a/programs/explorer/desktop.c
+++ b/programs/explorer/desktop.c
@@ -64,6 +64,8 @@ static int desktop_width, launcher_size, launchers_per_row;
static struct launcher **launchers;
static unsigned int nb_launchers, nb_allocated;
+static BOOL enable_shell;
+
#define END_SESSION_TIMER 1
HANDLE endsession_handle;
@@ -528,7 +530,7 @@ static LRESULT WINAPI desktop_wnd_proc( HWND hwnd, UINT message, WPARAM wp, LPAR
SetTimer( hwnd, END_SESSION_TIMER, 100, NULL );
}
}
- else
+ else if (!enable_shell)
DestroyWindow( hwnd );
return 0;
@@ -851,7 +853,6 @@ void manage_desktop( WCHAR *arg )
WCHAR *cmdline = NULL, *driver = NULL;
WCHAR *p = arg;
const WCHAR *name = NULL;
- BOOL enable_shell = FALSE;
/* get the rest of the command line (if any) */
while (*p && !isspace(*p)) p++;
--
1.8.3.2
More information about the wine-patches
mailing list