From da6b5eb7e1b9be8039b24359a525a00322f548eb Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 8 Mar 2011 10:01:06 +0000 Subject: [PATCH] event: Set the CrossingEvent device field The CLUTTER_ENTER and CLUTTER_LEAVE should also have their device field set when calling clutter_event_set_device(). --- clutter/clutter-event.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clutter/clutter-event.c b/clutter/clutter-event.c index 9f3c1d1d9..016bdc2f0 100644 --- a/clutter/clutter-event.c +++ b/clutter/clutter-event.c @@ -821,8 +821,11 @@ clutter_event_set_device (ClutterEvent *event, case CLUTTER_DESTROY_NOTIFY: case CLUTTER_CLIENT_MESSAGE: case CLUTTER_DELETE: + break; + case CLUTTER_ENTER: case CLUTTER_LEAVE: + event->crossing.device = device; break; case CLUTTER_BUTTON_PRESS: