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
This commit is contained in:
parent
f2158218be
commit
9bc1521615
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user