X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fsession.h;h=f37e2111710913002d20a10c9b36c06c91e46b61;hb=6c87b1dd703bb67d7c945dc846da9d17c9c72382;hp=cbfd517774df74f74b9f30664f875a49fc6dc6d9;hpb=1bf9de380991206d4afa104cd31c567583f288c2;p=chaz%2Fopenbox diff --git a/openbox/session.h b/openbox/session.h index cbfd5177..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, *name, *class, *role; + 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