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().
This commit is contained in:
Emmanuele Bassi 2011-03-08 10:01:06 +00:00
parent d1c819b563
commit da6b5eb7e1

View File

@ -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: