[Xfce4-commits] <xfdesktop:master> Tell session manage not to restart when quitting
Eric Koegel
noreply at xfce.org
Thu Nov 14 00:38:04 CET 2013
Updating branch refs/heads/master
to 0efc8138db0b63262f1b674b49d2b23d92e4b37c (commit)
from f8204f77cf48452b7021ee707369f6b69f322928 (commit)
commit 0efc8138db0b63262f1b674b49d2b23d92e4b37c
Author: Eric Koegel <eric.koegel at gmail.com>
Date: Mon Sep 23 14:10:27 2013 +0300
Tell session manage not to restart when quitting
src/xfdesktop-application.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/xfdesktop-application.c b/src/xfdesktop-application.c
index 8d528db..997b4f2 100644
--- a/src/xfdesktop-application.c
+++ b/src/xfdesktop-application.c
@@ -349,6 +349,12 @@ xfdesktop_handle_quit_signals(gint sig,
gpointer user_data)
{
gint main_level;
+ XfdesktopApplication *app = XFDESKTOP_APPLICATION(user_data);
+
+ if(app->sm_client && XFCE_IS_SM_CLIENT(app->sm_client)) {
+ xfce_sm_client_set_restart_style(app->sm_client,
+ XFCE_SM_CLIENT_RESTART_NORMAL);
+ }
for(main_level = gtk_main_level(); main_level > 0; --main_level)
gtk_main_quit();
More information about the Xfce4-commits
mailing list