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 */