[mutter] events: Remove extra check for certain grab op



commit f56cc1f73315bd6765816b64edf76e6810969435
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu May 8 15:04:03 2014 -0400

    events: Remove extra check for certain grab op
    
    We already explicitly test that there's no grab op right below.

 src/core/events.c |   17 -----------------
 1 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/src/core/events.c b/src/core/events.c
index a40e988..df8dd37 100644
--- a/src/core/events.c
+++ b/src/core/events.c
@@ -1684,20 +1684,6 @@ handle_other_xevent (MetaDisplay *display,
 }
 
 static gboolean
-grab_op_should_block_mouse_events (MetaGrabOp op)
-{
-  switch (op)
-    {
-    case META_GRAB_OP_WAYLAND_POPUP:
-    case META_GRAB_OP_COMPOSITOR:
-      return TRUE;
-
-    default:
-      return FALSE;
-    }
-}
-
-static gboolean
 window_has_xwindow (MetaWindow *window,
                     Window      xwindow)
 {
@@ -1943,9 +1929,6 @@ meta_display_handle_event (MetaDisplay        *display,
   switch (event->type)
     {
     case CLUTTER_BUTTON_PRESS:
-      if (grab_op_should_block_mouse_events (display->grab_op))
-        break;
-
       if (window && display->grab_op == META_GRAB_OP_NONE)
         {
           ClutterModifierType grab_mask;


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