mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 19:40:43 -05:00
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_DESTROY_NOTIFY:
|
||||||
case CLUTTER_CLIENT_MESSAGE:
|
case CLUTTER_CLIENT_MESSAGE:
|
||||||
case CLUTTER_DELETE:
|
case CLUTTER_DELETE:
|
||||||
|
break;
|
||||||
|
|
||||||
case CLUTTER_ENTER:
|
case CLUTTER_ENTER:
|
||||||
case CLUTTER_LEAVE:
|
case CLUTTER_LEAVE:
|
||||||
|
device = event->crossing.device;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case CLUTTER_BUTTON_PRESS:
|
case CLUTTER_BUTTON_PRESS:
|
||||||
|
Loading…
Reference in New Issue
Block a user