X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fsession.h;h=f37e2111710913002d20a10c9b36c06c91e46b61;hb=2391410e3fd7767e266c0efe84fd34244ea29dc6;hp=8663fce2973110d34688312ac1c5529b03d1307c;hpb=3c4d73c48403198a7d2db8d36a6174082840b58d;p=chaz%2Fopenbox diff --git a/openbox/session.h b/openbox/session.h index 8663fce2..f37e2111 100644 --- a/openbox/session.h +++ b/openbox/session.h @@ -19,14 +19,16 @@ #ifndef __ob__session_h #define __ob__session_h -#include +#include "client.h" +#include "screen.h" -struct _ObClient; +#include typedef struct _ObSessionState ObSessionState; struct _ObSessionState { gchar *id, *command, *name, *class, *role; + ObClientType type; guint desktop; gint x, y, w, h; gboolean shaded, iconic, skip_pager, skip_taskbar, fullscreen; @@ -39,6 +41,10 @@ struct _ObSessionState { /*! The desktop being viewed when the session was saved. A valud of -1 means it was not saved */ extern gint session_desktop; +extern gint session_num_desktops; +extern gboolean session_desktop_layout_present; +extern ObDesktopLayout session_desktop_layout; +extern GSList *session_desktop_names; extern GList *session_saved_state; @@ -47,4 +53,8 @@ void session_shutdown(gboolean permanent); GList* session_state_find(struct _ObClient *c); +void session_request_logout(gboolean silent); + +gboolean session_connected(void); + #endif