[mutter] tiling: Fix "maximize" tile with no chrome at the top



commit 7d0ff87cbeffd36ec13b8d8d66689032fa0f444c
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Dec 3 02:29:25 2010 +0100

    tiling: Fix "maximize" tile with no chrome at the top
    
    The original patch triggered "maximize" when the window was dragged
    to the top, so that the pointer was below or on the monitor edge and
    above the work area's top.
    
    If there's no chrome at the top of the monitor, so that monitor edge
    and work area top fall together, the pointer cannot be moved above
    the work area's top, so tiling was not triggered.

 src/core/window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 7db887c..6139560 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -7861,7 +7861,7 @@ update_move (MetaWindow  *window,
               x < (monitor->rect.x + monitor->rect.width))
             {
               /* check if cursor is on the top edge of the monitor*/
-              if (y >= monitor->rect.y && y < work_area.y)
+              if (y >= monitor->rect.y && y <= work_area.y)
                   window->tile_mode = META_TILE_MAXIMIZED;
             }
         }



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