Bug 1108 - Enter/Leave events logics wrt. skipped motion events
authorØyvind Kolås <pippin@openedhand.com>
Wed, 1 Oct 2008 13:46:33 +0000 (13:46 +0000)
committerØyvind Kolås <pippin@openedhand.com>
Wed, 1 Oct 2008 13:46:33 +0000 (13:46 +0000)
commitc606547dcbbdd0cc83f90c542e074fd5852324a2
treed389b36b50fb5e2fa55c7f68548230d00a935461
parentc05af0ed872d0dc6aa9ce936a6687f7a226202c8
Bug 1108 - Enter/Leave events logics wrt. skipped motion events
Handle dropped motion events when computing crossing events,
based on a patch from Gwenole Beauchesne.
* clutter/clutter-main.c: (clutter_event_get_device): internal static
utility function.
(clutter_do_event): generate enter/leave events for all pointer
events.
(generate_enter_leave_events): modified enter/leave events generator
to work for all pointer event types. Enter/leave events are now
delivered before the motion/button event that caused the crossing to
happen.
* clutter/clutter-event.c: (clutter_event_copy), (clutter_event_free):
removed reference counting logic that is not needed when the crossing
events are directly delivered.
ChangeLog
clutter/clutter-event.c
clutter/clutter-main.c