* clutter/clutter-main.c: (clutter_do_event): allow motion events

only delivered to stage to be chaugt in the capture phase as well
as the bubbling phase.
This commit is contained in:
Øyvind Kolås 2007-10-16 16:35:02 +00:00
parent 143a5937e2
commit a7fb3a78d2
2 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2007-10-15 Øyvind Kolås <pippin@o-hand.com>
* clutter/clutter-main.c: (clutter_do_event): allow motion events
only delivered to stage to be chaugt in the capture phase as well
as the bubbling phase.
2007-10-16 Emmanuele Bassi <ebassi@openedhand.com> 2007-10-16 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/json/json-object.c: Automatically transform every * clutter/json/json-object.c: Automatically transform every

View File

@ -1256,7 +1256,14 @@ clutter_do_event (ClutterEvent *event)
{ {
/* Only stage gets motion events */ /* Only stage gets motion events */
event->motion.source = stage; event->motion.source = stage;
/* Trigger handlers in both capture .. */
if (!clutter_actor_event (stage, event, TRUE))
{
/* and/or bubbling phase */
clutter_actor_event (stage, event, FALSE); clutter_actor_event (stage, event, FALSE);
}
break; break;
} }
case CLUTTER_BUTTON_PRESS: case CLUTTER_BUTTON_PRESS: