From 39d3ff6cafb8a7f6b2f0fc00f785f46b6cb81d6d Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 11 Feb 2015 16:31:13 -0800 Subject: [PATCH] run-js-test: Remove old code to shove X11 events through --- src/run-js-test.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/run-js-test.c b/src/run-js-test.c index b81f6d215..b90c0b6f6 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 */