1
/* Metacity Session Management */
4
* Copyright (C) 2001 Havoc Pennington
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License as
8
* published by the Free Software Foundation; either version 2 of the
9
* License, or (at your option) any later version.
11
* This program is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22
#ifndef META_SESSION_H
23
#define META_SESSION_H
27
typedef struct _MetaWindowSessionInfo MetaWindowSessionInfo;
29
struct _MetaWindowSessionInfo
31
/* Fields we use to match against */
40
/* Information we restore */
42
GSList *workspace_indices;
46
/* width/height should be multiplied by resize inc and
47
* added to base size; position should be interpreted in
48
* light of gravity. This preserves semantics of the
49
* window size/pos, even if fonts/themes change, etc.
53
MetaRectangle saved_rect;
54
guint on_all_workspaces : 1;
58
guint stack_position_set : 1;
59
guint geometry_set : 1;
60
guint on_all_workspaces_set : 1;
61
guint minimized_set : 1;
62
guint maximized_set : 1;
63
guint saved_rect_set : 1;
66
/* If lookup_saved_state returns something, it should be used,
67
* and then released when you're done with it.
69
const MetaWindowSessionInfo* meta_window_lookup_saved_state (MetaWindow *window);
70
void meta_window_release_saved_state (const MetaWindowSessionInfo *info);
72
void meta_session_init (const char *client_id,
73
const char *save_file);
76
void meta_session_shutdown (void);