[mutter] window: Relax restrictions for can_tile_maximized ()



commit c3d76aead60b20059e12f6ab5c41ca6bba5bbfcc
Author: Florian MÃllner <fmuellner gnome org>
Date:   Tue Dec 6 00:52:09 2011 +0100

    window: Relax restrictions for can_tile_maximized ()
    
    The current code requires windows to be resizable to be considered
    for tiling, which excludes all maximized/tiled windows. While this
    restriction concurs with the desired behavior for edge-tiling, it
    feels overly restrictive for keybindings.
    As the edge-tiling code in update_move() already ensures the above
    restriction, it seems save to remove it from the can_tile_maximized()
    function, assuming that windows that are not meant to be tiled or
    maximized won't provide a maximize function.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=648700

 src/core/window.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 488a80a..6f1efc8 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -3600,13 +3600,7 @@ meta_window_tile (MetaWindow *window)
 static gboolean
 meta_window_can_tile_maximized (MetaWindow *window)
 {
-  if (!META_WINDOW_ALLOWS_RESIZE (window))
-    return FALSE;
-
-  if (!window->has_maximize_func)
-    return FALSE;
-
-  return TRUE;
+  return window->has_maximize_func;
 }
 
 static gboolean



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