summaryrefslogtreecommitdiff
path: root/src/session.h
diff options
context:
space:
mode:
authorrhp <rhp>2001-07-27 04:36:44 +0000
committerrhp <rhp>2001-07-27 04:36:44 +0000
commitb88cece21339d0f1b8a1e7b06d1de59ac29e31e0 (patch)
tree9d74c3282982bed63b5cf0035208a58e8ca10e71 /src/session.h
parentb6d07e70a409ffc9d2cbb4b0525571b1fb7c0df0 (diff)
downloadmetacity-b88cece21339d0f1b8a1e7b06d1de59ac29e31e0.tar.gz
metacity-b88cece21339d0f1b8a1e7b06d1de59ac29e31e0.tar.bz2
...
Diffstat (limited to 'src/session.h')
-rw-r--r--src/session.h33
1 files changed, 29 insertions, 4 deletions
diff --git a/src/session.h b/src/session.h
index 3ec3ecc..7250a5a 100644
--- a/src/session.h
+++ b/src/session.h
@@ -28,14 +28,39 @@ typedef struct _MetaWindowSessionInfo MetaWindowSessionInfo;
struct _MetaWindowSessionInfo
{
- int workspace;
+ /* Fields we use to match against */
+ char *id;
+ char *res_class;
+ char *res_name;
+ char *title;
+ char *role;
+ MetaWindowType type;
+
+ /* Information we restore */
+
+ GSList *workspace_indices;
+
+ /* width/height should be multiplied by resize inc and
+ * added to base size; position should be interpreted in
+ * light of gravity. This preserves semantics of the
+ * window size/pos, even if fonts/themes change, etc.
+ */
+ int gravity;
+ MetaRectangle rect;
+ guint on_all_workspaces : 1;
+
+ guint geometry_set : 1;
+ guint on_all_workspaces_set : 1;
};
-void meta_window_lookup_saved_state (MetaWindow *window,
- MetaWindowSessionInfo *info);
+/* If lookup_saved_state returns something, it should be used,
+ * and then released when you're done with it.
+ */
+const MetaWindowSessionInfo* meta_window_lookup_saved_state (MetaWindow *window);
+void meta_window_release_saved_state (const MetaWindowSessionInfo *info);
-void meta_session_init (const char *previous_id);
+void meta_session_init (const char *previous_id);
#endif