[gnome-shell] run-js-test: Remove old code to shove X11 events through



commit 39d3ff6cafb8a7f6b2f0fc00f785f46b6cb81d6d
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Feb 11 16:31:13 2015 -0800

    run-js-test: Remove old code to shove X11 events through

 src/run-js-test.c |   16 ----------------
 1 files changed, 0 insertions(+), 16 deletions(-)
---
diff --git a/src/run-js-test.c b/src/run-js-test.c
index b81f6d2..b90c0b6 100644
--- a/src/run-js-test.c
+++ b/src/run-js-test.c
@@ -46,19 +46,6 @@ static GOptionEntry entries[] = {
   { NULL }
 };
 
-static GdkFilterReturn
-event_filter (GdkXEvent *xevent,
-              GdkEvent  *event,
-              gpointer   data)
-{
-  XEvent *xev = (XEvent *)xevent;
-
-  if (clutter_x11_handle_event (xev) == CLUTTER_X11_FILTER_CONTINUE)
-    return GDK_FILTER_CONTINUE;
-  else
-    return GDK_FILTER_REMOVE;
-}
-
 int
 main(int argc, char **argv)
 {
@@ -75,13 +62,10 @@ main(int argc, char **argv)
   gtk_init (&argc, &argv);
 
   clutter_x11_set_display (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()));
-  clutter_x11_disable_event_retrieval ();
 
   if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
     return 1;
 
-  gdk_window_add_filter (NULL, event_filter, NULL);
-
   context = g_option_context_new (NULL);
 
   /* pass unknown through to the JS script */


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