[mutter/gnome-3-16] window-x11: Fix checks for a bounding region input region



commit fe4b650ebb52c3616514c2483a94378cd99fe2d8
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Jan 22 18:25:02 2016 -0800

    window-x11: Fix checks for a bounding region input region
    
    When cleaning up the logic in commit c408cf7, I forgot to properly apply
    de Morgan's laws to an inverse.
    
    Reported by ricotz on IRC.
    
    (cherry picked from commit 6fc51e3723b08d99701cbb9f912adc230dec072a)

 src/x11/window-x11.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/x11/window-x11.c b/src/x11/window-x11.c
index f37be26..f96b757 100644
--- a/src/x11/window-x11.c
+++ b/src/x11/window-x11.c
@@ -1727,9 +1727,9 @@ meta_window_x11_update_input_region (MetaWindow *window)
           region = cairo_region_create ();
         }
       else if (n_rects == 1 &&
-               (rects[0].x == 0 ||
-                rects[0].y == 0 ||
-                rects[0].width == priv->client_rect.width ||
+               (rects[0].x == 0 &&
+                rects[0].y == 0 &&
+                rects[0].width == priv->client_rect.width &&
                 rects[0].height == priv->client_rect.height))
         {
           /* This is the bounding region case. Keep the


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