From c3d76aead60b20059e12f6ab5c41ca6bba5bbfcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 6 Dec 2011 00:52:09 +0100 Subject: [PATCH] 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 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/core/window.c b/src/core/window.c index 488a80a85..6f1efc8b6 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