2007-12-18 Emmanuele Bassi <ebassi@openedhand.com>

* clutter/clutter-main.c:
	(unset_motion_last_actor),
	(generate_enter_leave_events): Attach a callback to the destroy
	signal on the last motion actor, so if it goes away while the
	pointer is in the middle of it we can unset the pointer.

	* clutter/clutter-private.h: Store the last motion actor inside
	the global context.
This commit is contained in:
Emmanuele Bassi
2007-12-18 10:49:29 +00:00
parent 98c537365c
commit b14bdfe2bb
3 changed files with 45 additions and 8 deletions

View File

@ -94,6 +94,8 @@ struct _ClutterMainContext
(or NULL if there is no pointer grab)
*/
GSList *shaders; /* stack of overridden shaders */
ClutterActor *motion_last_actor;
};
#define CLUTTER_CONTEXT() (clutter_context_get_default ())