diff options
author | rhp <rhp> | 2001-06-07 05:18:10 +0000 |
---|---|---|
committer | rhp <rhp> | 2001-06-07 05:18:10 +0000 |
commit | 0feac37c5b23870dbd1bdd3ac30e9f5435820217 (patch) | |
tree | 0ee727eb83388ec2e99ead6a545da3b6fe492d11 /src/window.h | |
parent | 834452ca2c2cde16bd11351e90df44cbe20c96bf (diff) | |
download | metacity-0feac37c5b23870dbd1bdd3ac30e9f5435820217.tar.gz |
...
Diffstat (limited to 'src/window.h')
-rw-r--r-- | src/window.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/window.h b/src/window.h index 70c2a11a..38d4440a 100644 --- a/src/window.h +++ b/src/window.h @@ -39,12 +39,14 @@ struct _MetaWindow char *desc; /* used in debug spew */ char *title; + /* Whether we're maximized */ + guint maximized : 1; /* Mapped is what we think the mapped state should be; * so if we get UnmapNotify and mapped == TRUE then * it's a withdraw, if mapped == FALSE the UnmapNotify * is caused by us. */ - guint mapped : 1; + guint mapped : 1 ; /* Minimize is the state controlled by the minimize button */ guint minimized : 1; /* Iconic is the state in WM_STATE; happens for workspaces/shading @@ -67,8 +69,19 @@ struct _MetaWindow */ guint has_focus : 1; - /* The size we set the window to last. */ + /* The size we set the window to last (i.e. what we believe + * to be its actual size on the server). The x, y are + * the actual server-side x,y so are relative to the frame + * or the root window as appropriate. + */ MetaRectangle rect; + + /* The geometry to restore when we unmaximize. + * The position is in root window coords, even if + * there's a frame, which contrasts with window->rect + * above. + */ + MetaRectangle saved_rect; /* Requested geometry */ int border_width; @@ -86,6 +99,8 @@ void meta_window_unminimize (MetaWindow *window); void meta_window_resize (MetaWindow *window, int w, int h); +void meta_window_maximize (MetaWindow *window); +void meta_window_unmaximize (MetaWindow *window); /* args to move are window pos, not frame pos */ void meta_window_move (MetaWindow *window, |