summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-06-23 00:21:20 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-06-23 00:21:20 +0000
commit97b629ad5b547e1e803ab68538fbc43a5089f5b0 (patch)
treeab7269d19c574fc99fccf460818a0b0583d687d1 /src/window.c
parent5eca441b1ca058b571e31202d8127bed61e6184e (diff)
downloadmetacity-97b629ad5b547e1e803ab68538fbc43a5089f5b0.tar.gz
metacity-97b629ad5b547e1e803ab68538fbc43a5089f5b0.tar.bz2
Partially fix Jacob's SM bugs.
2002-06-22 Havoc Pennington <hp@pobox.com> Partially fix Jacob's SM bugs. * src/window.c (meta_window_apply_session_info): restore the extra stuff we're saving, except stack position I didn't figure out yet. * src/session.c: save stack position, minimized, maximized, in the session file.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index 0c1d9fc..2211905 100644
--- a/src/window.c
+++ b/src/window.c
@@ -628,6 +628,35 @@ static void
meta_window_apply_session_info (MetaWindow *window,
const MetaWindowSessionInfo *info)
{
+ if (info->stack_position_set)
+ {
+ meta_topic (META_DEBUG_SM,
+ "Restoring stack position %d for window %s\n",
+ info->stack_position, window->desc);
+
+ /* FIXME well, I'm not sure how to do this. */
+ }
+
+ if (info->minimized_set)
+ {
+ meta_topic (META_DEBUG_SM,
+ "Restoring minimized state %d for window %s\n",
+ info->minimized, window->desc);
+
+ if (window->has_minimize_func && info->minimized)
+ meta_window_minimize (window);
+ }
+
+ if (info->maximized_set)
+ {
+ meta_topic (META_DEBUG_SM,
+ "Restoring maximized state %d for window %s\n",
+ info->maximized, window->desc);
+
+ if (window->has_maximize_func && info->maximized)
+ meta_window_maximize (window);
+ }
+
if (info->on_all_workspaces_set)
{
window->on_all_workspaces = info->on_all_workspaces;