From 41b815ebf458237c07cac29a33b13cedc272083f Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 8 Mar 2011 10:05:57 +0000 Subject: [PATCH] event: Return the CrossingEvent.device field The CLUTTER_ENTER and CLUTTER_LEAVE event types were mistakenly ignored by clutter_event_get_device(), when returning the device from a non-allocated ClutterEvent. --- clutter/clutter-event.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clutter/clutter-event.c b/clutter/clutter-event.c index 016bdc2f0..12a512f35 100644 --- a/clutter/clutter-event.c +++ b/clutter/clutter-event.c @@ -885,8 +885,11 @@ clutter_event_get_device (const ClutterEvent *event) case CLUTTER_DESTROY_NOTIFY: case CLUTTER_CLIENT_MESSAGE: case CLUTTER_DELETE: + break; + case CLUTTER_ENTER: case CLUTTER_LEAVE: + device = event->crossing.device; break; case CLUTTER_BUTTON_PRESS: