[Xfce4-commits] <libxfce4ui:new-sm-client> actually call gdk_set_sm_client_id() in the appropriate place

Brian J. Tarricone noreply at xfce.org
Sat Sep 19 11:52:04 CEST 2009


Updating branch refs/heads/kelnos/new-sm-client
         to 0b24f362fe3ed0176bca7a1b41256072ca1e14a9 (commit)
       from b6bf9168dc2e0dbcb535106f60fc7465265db361 (commit)

commit 0b24f362fe3ed0176bca7a1b41256072ca1e14a9
Author: Brian J. Tarricone <brian at tarricone.org>
Date:   Sat Sep 19 02:50:29 2009 -0700

    actually call gdk_set_sm_client_id() in the appropriate place

 libxfce4ui/xfce-sm-client.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libxfce4ui/xfce-sm-client.c b/libxfce4ui/xfce-sm-client.c
index d948659..d5f266c 100644
--- a/libxfce4ui/xfce-sm-client.c
+++ b/libxfce4ui/xfce-sm-client.c
@@ -640,6 +640,8 @@ xfce_sm_client_set_client_id(XfceSMClient *sm_client,
     g_free(sm_client->client_id);
     sm_client->client_id = g_strdup(client_id);
 
+    gdk_set_sm_client_id(sm_client->client_id);
+
     g_object_notify(G_OBJECT(sm_client), "client-id");
 }
 
@@ -1597,8 +1599,6 @@ xfce_sm_client_connect(XfceSMClient *sm_client,
 
     free(given_client_id);
 
-    gdk_set_sm_client_id(sm_client->client_id);
-
     hint = xsmp_restart_style_from_enum(sm_client->restart_style);
 
     prop1.name = SmProgram;



More information about the Xfce4-commits mailing list