[mutter] Make entire side of screen edge-tiling not maximization



commit 96c43866b1099002a1bda3b1f14f7d193a6780d2
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Wed Mar 16 17:50:59 2011 -0400

    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 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 69104ab..e15eefb 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))



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