mirror of
https://github.com/brl/mutter.git
synced 2025-01-11 04:02:36 +00:00
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:
parent
3ef9e235ef
commit
b40643b86e
@ -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>
|
2008-02-11 Matthew Allum <mallum@openedhand.com>
|
||||||
|
|
||||||
* clutter/clutter-actor.c:
|
* clutter/clutter-actor.c:
|
||||||
|
@ -342,8 +342,6 @@ event_translate (ClutterBackend *backend,
|
|||||||
stage_xwindow = clutter_x11_get_stage_window (stage);
|
stage_xwindow = clutter_x11_get_stage_window (stage);
|
||||||
|
|
||||||
xwindow = xevent->xany.window;
|
xwindow = xevent->xany.window;
|
||||||
if (xwindow == None)
|
|
||||||
xwindow = stage_xwindow;
|
|
||||||
|
|
||||||
if (backend_x11->event_filters)
|
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;
|
res = TRUE;
|
||||||
|
|
||||||
switch (xevent->type)
|
switch (xevent->type)
|
||||||
|
Loading…
Reference in New Issue
Block a user