2008-02-12 Tomas Frydrych <tf@openedhand.com>

* clutter/x11/clutter-event-x11.c (event_translate):
	Ignore events directed at the stage window once they have been
	passed to the filter functions.
This commit is contained in:
Tomas Frydrych 2008-02-12 12:39:22 +00:00
parent 3ef9e235ef
commit b40643b86e
2 changed files with 29 additions and 17 deletions

View File

@ -1,3 +1,9 @@
2008-02-12 Tomas Frydrych <tf@openedhand.com>
* clutter/x11/clutter-event-x11.c (event_translate):
Ignore events directed at the stage window once they have been
passed to the filter functions.
2008-02-11 Matthew Allum <mallum@openedhand.com>
* clutter/clutter-actor.c:

View File

@ -342,8 +342,6 @@ event_translate (ClutterBackend *backend,
stage_xwindow = clutter_x11_get_stage_window (stage);
xwindow = xevent->xany.window;
if (xwindow == None)
xwindow = stage_xwindow;
if (backend_x11->event_filters)
{
@ -372,6 +370,14 @@ event_translate (ClutterBackend *backend,
}
}
/*
* Do further processing only on events for the stage window
* (the x11 filters might be getting events for other windows, so do not
* mess them about.
*/
if (xwindow != stage_xwindow)
return FALSE;
res = TRUE;
switch (xevent->type)