[Xfce4-commits] <xfwm4:master> 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:30:02 CEST 2011
Updating branch refs/heads/master
to 945a7a80a6b67a88fb51a5d2fd6110164c3dcbc9 (commit)
from 07f7ea1468a4daeca91394181c7d9e607066831a (commit)
commit 945a7a80a6b67a88fb51a5d2fd6110164c3dcbc9
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