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.
This commit is contained in:
parent
1bacefd6d8
commit
41b815ebf4
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user