summaryrefslogtreecommitdiffstats
path: root/metacity-2.28-IceCloseConnection.patch
diff options
context:
space:
mode:
Diffstat (limited to 'metacity-2.28-IceCloseConnection.patch')
-rw-r--r--metacity-2.28-IceCloseConnection.patch16
1 files changed, 9 insertions, 7 deletions
diff --git a/metacity-2.28-IceCloseConnection.patch b/metacity-2.28-IceCloseConnection.patch
index dc996ea..e05fc18 100644
--- a/metacity-2.28-IceCloseConnection.patch
+++ b/metacity-2.28-IceCloseConnection.patch
@@ -1,4 +1,4 @@
-From 3fd59d1e7e1a23202f58536fb7a995aa5951664b Mon Sep 17 00:00:00 2001
+From 13f6daee4752ae5b1fb61447deaca43161d5b0bc Mon Sep 17 00:00:00 2001
From: Owen W. Taylor <otaylor@fishsoup.net>
Date: Thu, 17 Dec 2009 16:20:18 -0500
Subject: [PATCH] Don't call IceCloseConnection() behind libSM's back
@@ -10,11 +10,11 @@ exit out of the metacity main loop and get to meta_finalize().
https://bugzilla.gnome.org/show_bug.cgi?id=604867
---
- src/core/session.c | 8 +++++++-
- 1 files changed, 7 insertions(+), 1 deletions(-)
+ src/core/session.c | 10 +++++++---
+ 1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/core/session.c b/src/core/session.c
-index 96d8d71..0a12649 100644
+index 96d8d71..2ca15c9 100644
--- a/src/core/session.c
+++ b/src/core/session.c
@@ -84,6 +84,7 @@ static char* load_state (const char *previous_save_file);
@@ -25,20 +25,22 @@ index 96d8d71..0a12649 100644
/* This is called when data is available on an ICE connection. */
static gboolean
-@@ -106,7 +107,12 @@ process_ice_messages (GIOChannel *channel,
+@@ -106,9 +107,12 @@ process_ice_messages (GIOChannel *channel,
IcePointer context = IceGetConnectionContext (connection);
#endif
- /* We were disconnected */
+- IceSetShutdownNegotiation (connection, False);
+- IceCloseConnection (connection);
+ /* We were disconnected; close our connection to the
+ * session manager, this will result in the ICE connection
+ * being cleaned up, since it is owned by libSM.
+ */
+ disconnect ();
+ meta_quit (META_EXIT_SUCCESS);
- IceSetShutdownNegotiation (connection, False);
- IceCloseConnection (connection);
+ return FALSE;
+ }
--
1.6.5.2