From 654bd15319f67bb874d26f1e1fe0d1b6a7c0339d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sat, 4 Dec 2010 20:49:24 +0100 Subject: [PATCH] tiling: Do not restore maximized tile state when unmaximizing When a tiled window is maximized (e.g. by clicking the title bar button), unmaximizing the window restores the tiled state. While this is reasonable for side-by-side tiling, it is confusing for "maximize" tiled windows, as unmaximization has no visible effect. Change unmaximize to only restore the tiled state of side-by-side tiled windows. --- src/core/window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/window.c b/src/core/window.c index be5e65c7b..c1c119c51 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -3418,7 +3418,8 @@ meta_window_unmaximize (MetaWindow *window, MetaMaximizeFlags directions) { /* Restore tiling if necessary */ - if (window->tile_mode != META_TILE_NONE) + if (window->tile_mode == META_TILE_LEFT || + window->tile_mode == META_TILE_RIGHT) { window->maximized_horizontally = FALSE; meta_window_tile (window);