]> Dogcows Code - chaz/openbox/blobdiff - openbox/session.c
Combine the Exit and SessionLogout actions
[chaz/openbox] / openbox / session.c
index 811592ec90cd5fbbfb68531a36ebc5a88e4bf18b..14018478ae183df6beda9a5af2015edaeec4ee2a 100644 (file)
@@ -34,6 +34,7 @@ void session_startup(gint argc, gchar **argv) {}
 void session_shutdown(gboolean permanent) {}
 GList* session_state_find(struct _ObClient *c) { return NULL; }
 void session_request_logout(gboolean silent) {}
+gboolean session_connected(void) { return FALSE; }
 #else
 
 #include "debug.h"
@@ -155,6 +156,11 @@ void session_shutdown(gboolean permanent)
     }
 }
 
+gboolean session_connected(void)
+{
+    return !!sm_conn;
+}
+
 /*! Connect to the session manager and set up our callback functions */
 static gboolean session_connect()
 {
This page took 0.019583 seconds and 4 git commands to generate.