[mutter] tiling: Do not restore maximized tile state when unmaximizing



commit 654bd15319f67bb874d26f1e1fe0d1b6a7c0339d
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Dec 4 20:49:24 2010 +0100

    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 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index be5e65c..c1c119c 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]