[mutter] Don't exit on XSMP request
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] Don't exit on XSMP request
- Date: Mon, 28 Feb 2011 18:57:52 +0000 (UTC)
commit 9bc15216153fd3be486e0d728fda1db47fa4a32f
Author: Colin Walters <walters verbum org>
Date: Sat Feb 26 17:01:21 2011 -0500
Don't exit on XSMP request
It looks amazingly lame if we simply call exit() during logout. While
it's true that for applications that use XSMP, gnome-session will
close them before us, that doesn't do anything for non-XSMP apps,
which we really hope is the common case.
Instead, we just go away when the X server does.
https://bugzilla.gnome.org/show_bug.cgi?id=643437
src/core/session.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/core/session.c b/src/core/session.c
index 7060863..ccc570f 100644
--- a/src/core/session.c
+++ b/src/core/session.c
@@ -544,9 +544,16 @@ save_yourself_callback (SmcConn smc_conn,
static void
die_callback (SmcConn smc_conn, SmPointer client_data)
{
- meta_topic (META_DEBUG_SM, "Exiting at request of session manager\n");
+ meta_topic (META_DEBUG_SM, "Disconnecting from session manager");
disconnect ();
- meta_quit (META_EXIT_SUCCESS);
+ /* We don't actually exit here - we will simply go away with the X
+ * server on logout, when we lose the X connection and libx11 kills
+ * us. It looks like *crap* on logout if the user sees their
+ * windows lose the decorations, etc.
+ *
+ * Anything that wants us to go away outside of session management
+ * can use kill().
+ */
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]