[mutter] tiling: disable "shake loose" feature when edge tiling
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] tiling: disable "shake loose" feature when edge tiling
- Date: Thu, 2 Dec 2010 22:44:26 +0000 (UTC)
commit 161c1088f91080f8caa955faf3d7a8cae430d00e
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Dec 2 16:43:21 2010 -0500
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 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index f8d64e5..7db887c 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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]