[mutter/wayland] display: Without a grab op let events go through clutter too



commit ae44bff0b16dfa8bf5d78bea0428fd544a44482f
Author: Rui Matos <tiagomatos gmail com>
Date:   Wed Nov 13 21:38:27 2013 +0100

    display: Without a grab op let events go through clutter too
    
    We want events to reach clutter no only when there a compositor modal
    grab but also when no grab op is in effect.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=712247

 src/core/display.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/core/display.c b/src/core/display.c
index 4de870a..f49b64b 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -2296,7 +2296,8 @@ meta_display_handle_event (MetaDisplay        *display,
     }
 #endif /* HAVE_WAYLAND */
 
-  return (display->grab_op != META_GRAB_OP_COMPOSITOR);
+  return (display->grab_op != META_GRAB_OP_NONE &&
+          display->grab_op != META_GRAB_OP_COMPOSITOR);
 }
 
 static gboolean


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