From 96c43866b1099002a1bda3b1f14f7d193a6780d2 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Wed, 16 Mar 2011 17:50:59 -0400 Subject: [PATCH] Make entire side of screen edge-tiling not maximization If dragging the title bar to the edge of the screen to side-tile, it's easy to end up above the workarea and end up maximized instead. Make the entire side of the screen act as edge-tiling. https://bugzilla.gnome.org/show_bug.cgi?id=644961 --- src/core/window.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/window.c b/src/core/window.c index 69104ab73..e15eefb7e 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -8137,6 +8137,8 @@ update_move (MetaWindow *window, window->tile_mode = META_TILE_NONE; } } + else + window->tile_mode = META_TILE_NONE; /* For maximized tiling we are interested in the outside top edge * of the work area of the monitor where the pointer is located. @@ -8145,7 +8147,7 @@ update_move (MetaWindow *window, * don't want to force users to maximize windows they are placing * near the top of their screens. */ - if (meta_window_can_tile_maximized (window)) + if (window->tile_mode == META_TILE_NONE && meta_window_can_tile_maximized (window)) { if (x >= monitor->rect.x && x < (monitor->rect.x + monitor->rect.width))