[Xfce4-commits] <xfwm4:xfce-4.8> Display session's struct memeber needs to be set even when not connected otherwise bad things may happen when quitting.

Olivier Fourdan noreply at xfce.org
Fri Sep 16 10:26:02 CEST 2011


Updating branch refs/heads/xfce-4.8
         to 9f2b2497cb2a1e7af39857f1902e890f6b67cdf8 (commit)
       from 60124c58f51c3af5ed9887c9be05cfe4dc69e39f (commit)

commit 9f2b2497cb2a1e7af39857f1902e890f6b67cdf8
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Fri Sep 16 10:23:11 2011 +0200

    Display session's struct memeber needs to be set even when not connected otherwise bad things may happen when quitting.

 src/session.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/session.c b/src/session.c
index e46407c..1c75ea5 100644
--- a/src/session.c
+++ b/src/session.c
@@ -762,11 +762,10 @@ sessionStart (DisplayInfo *display_info)
     session = xfce_sm_client_get ();
     xfce_sm_client_set_restart_style (session, XFCE_SM_CLIENT_RESTART_IMMEDIATELY);
     xfce_sm_client_set_priority (session, XFCE_SM_CLIENT_PRIORITY_WM);
+    display_info->session = session;
 
     if (xfce_sm_client_connect(session, &error))
     {
-        display_info->session = session;
-
         if (xfce_sm_client_is_resumed (session))
             sessionLoad (display_info);
 


More information about the Xfce4-commits mailing list