[mutter] compositor: Remove "exclusive is exclusive" codepath



commit 61b714c6660ae09d149affaf1cbc1f551afda687
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Apr 23 13:56:04 2014 -0400

    compositor: Remove "exclusive is exclusive" codepath
    
    We now handle input events in the backend.

 src/compositor/compositor.c |   32 --------------------------------
 1 files changed, 0 insertions(+), 32 deletions(-)
---
diff --git a/src/compositor/compositor.c b/src/compositor/compositor.c
index abd6135..1475deb 100644
--- a/src/compositor/compositor.c
+++ b/src/compositor/compositor.c
@@ -716,29 +716,6 @@ meta_compositor_queue_frame_drawn (MetaCompositor *compositor,
   meta_window_actor_queue_frame_drawn (window_actor, no_delay_frame);
 }
 
-static gboolean
-is_grabbed_event (MetaDisplay *display,
-                  XEvent      *event)
-{
-  if (event->type == GenericEvent &&
-      event->xcookie.extension == display->xinput_opcode)
-    {
-      XIEvent *xev = (XIEvent *) event->xcookie.data;
-
-      switch (xev->evtype)
-        {
-        case XI_Motion:
-        case XI_ButtonPress:
-        case XI_ButtonRelease:
-        case XI_KeyPress:
-        case XI_KeyRelease:
-          return TRUE;
-        }
-    }
-
-  return FALSE;
-}
-
 void
 meta_compositor_window_shape_changed (MetaCompositor *compositor,
                                       MetaWindow     *window)
@@ -865,15 +842,6 @@ meta_compositor_process_event (MetaCompositor *compositor,
 {
   MetaDisplay *display = compositor->display;
 
-  if (is_modal (display) && is_grabbed_event (display, event))
-    {
-      meta_plugin_manager_xevent_filter (compositor->plugin_mgr, event);
-
-      /* We always consume events even if the plugin says it didn't handle them;
-       * exclusive is exclusive */
-      return TRUE;
-    }
-
   if (!meta_is_wayland_compositor ())
     maybe_spoof_event_as_stage_event (compositor, window, event);
 


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