From 161c1088f91080f8caa955faf3d7a8cae430d00e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 2 Dec 2010 16:43:21 -0500 Subject: [PATCH] tiling: disable "shake loose" feature when edge tiling The old behavior of being able to shake loose a maximized window overlaps with and is for the most part superceded by top edge tiling. This commit changes the code to only enable shake loose behavior when edge tiling is disabled. https://bugzilla.gnome.org/show_bug.cgi?id=630548 --- src/core/window.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/core/window.c b/src/core/window.c index f8d64e5cf..7db887c0d 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -7877,8 +7877,11 @@ update_move (MetaWindow *window, { double prop; - /* Shake loose */ - window->shaken_loose = !META_WINDOW_TILED_SIDE_BY_SIDE (window); + /* Shake loose, so that the window snaps back to maximized + * when dragged near the top; do not snap back if tiling + * is enabled, as top edge tiling can be used in that case + */ + window->shaken_loose = !meta_prefs_get_edge_tiling (); window->tile_mode = META_TILE_NONE; /* move the unmaximized window to the cursor */