From e27ac1f436267aa0431df7802db11a5569831135 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Guelfucci?= Date: Wed, 10 Feb 2010 00:14:18 +0100 Subject: Don't save settings dialogs when saving session (Bug #5113). For this, we set a fake SM id for each dialog. This needs to be added in every settings dialog (Thunar, xfdesktop, xfce4-panel, xfwm4, xfce4-notifyd, exo-preferred-applications...). --- settings/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/settings/main.c b/settings/main.c index a1d016dc..09ab8020 100644 --- a/settings/main.c +++ b/settings/main.c @@ -135,6 +135,10 @@ main(int argc, g_signal_connect(dialog, "delete-event", G_CALLBACK(gtk_main_quit), NULL); gtk_widget_show(dialog); + + /* To prevent the settings dialog to be saved in the session */ + gdk_set_sm_client_id ("FAKE ID"); + gtk_main(); } else { GtkWidget *plug, *plug_child; -- cgit v1.2.1