diff --git a/tests/examples/clutter/clutteractortee.c b/tests/examples/clutter/clutteractortee.c index 9cbba5aace..ceef613dd3 100644 --- a/tests/examples/clutter/clutteractortee.c +++ b/tests/examples/clutter/clutteractortee.c @@ -41,6 +41,9 @@ struct GstGLClutterActor_ { typedef struct GstGLClutterActor_ GstGLClutterActor; +static ClutterX11FilterReturn event_filter (XEvent *ev, ClutterEvent *cev, + gpointer data); + static gboolean create_actor (GstGLClutterActor *actor) { static gint xpos = 0; @@ -112,6 +115,22 @@ apply_fx (GstElement *element, const gchar *fx) } #endif + +static ClutterX11FilterReturn +event_filter (XEvent *ev, ClutterEvent *cev, gpointer data) +{ + gint i; + GstElement **sink = data; + switch (ev->type) { + case Expose: + for (i=0; i