diff options
author | Florian Müllner <fmuellner@gnome.org> | 2012-07-03 21:52:24 +0200 |
---|---|---|
committer | Florian Müllner <fmuellner@gnome.org> | 2012-07-16 22:18:47 +0200 |
commit | 10d53fc7d200b9cc86ca7302c410558e5d917976 (patch) | |
tree | 405b486926716e8d1ed99ffd27ff773d9a335693 | |
parent | eb1292ea994301c312e499bf657e1c3ee4dc843e (diff) | |
download | mutter-10d53fc7d200b9cc86ca7302c410558e5d917976.tar.gz |
window: Do not restore tiling on unmaximize
When we consider tiling a special case of maximization, it makes
more sense to always unmaximize to the normal state rather than
restoring a previous tile state.
https://bugzilla.gnome.org/show_bug.cgi?id=677565
-rw-r--r-- | src/core/window.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/core/window.c b/src/core/window.c index 93422aa1a..4c754b6c3 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -3889,15 +3889,6 @@ void meta_window_unmaximize (MetaWindow *window, MetaMaximizeFlags directions) { - /* Restore tiling if necessary */ - if (window->tile_mode == META_TILE_LEFT || - window->tile_mode == META_TILE_RIGHT) - { - window->maximized_horizontally = FALSE; - meta_window_tile (window); - return; - } - meta_window_unmaximize_internal (window, directions, &window->saved_rect, NorthWestGravity); } |