diff options
author | Elijah Newren <newren gmail com> | 2006-10-01 21:59:09 +0000 |
---|---|---|
committer | Elijah Newren <newren@src.gnome.org> | 2006-10-01 21:59:09 +0000 |
commit | 07e4cacf14874746453c1c4818122e899bdc4159 (patch) | |
tree | a85b8b3be47eba5a4083fd8af8e3c18fd4ce086b /src/display.h | |
parent | 79eb53bd535c32d641e0da22ed7f7c139ece8e77 (diff) | |
download | metacity-07e4cacf14874746453c1c4818122e899bdc4159.tar.gz |
Patch from Carlo Wood to ensure that maximized and minimized properties
2006-10-01 Elijah Newren <newren gmail com>
Patch from Carlo Wood to ensure that maximized and minimized
properties are maintained across restarts. #358042.
* src/constraints.c (place_window_if_needed): fix up partial
maximization handling and add minimize_after_placement handling.
* src/display.[ch] (struct MetaDisplay, meta_display_open): add a
new display->display_opening flag to allow handling startup
differently where needed.
* src/window-props.c (reload_net_wm_state): handle
_net_wm_state_hidden as well, setting
window->minimize_after_placement appropriately
* src/window.[ch] (struct MetaWindow, meta_window_new_with_attrs):
add a window->minimize_after_placement field
* src/window.c (meta_window_new_with_attrs): only unminimize the
window and its transients if the display isn't being opened,
(unmaximize_window_before_freeing): don't reset the state unless
the window is becoming withdrawn, if the screen is being closed be
sure to save the unmaximized state of the window so the next
window manager can restore it
Diffstat (limited to 'src/display.h')
-rw-r--r-- | src/display.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/display.h b/src/display.h index 689af220..528e2327 100644 --- a/src/display.h +++ b/src/display.h @@ -311,6 +311,9 @@ struct _MetaDisplay /* Xinerama cache */ unsigned int xinerama_cache_invalidated : 1; + /* Opening the display */ + unsigned int display_opening : 1; + /* Closing down the display */ int closing; |