mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
Do not pick when motion event delivery is disabled
The device manager does not need to update the state of the devices when the user has disabled the delivery of motion events to actors: the events will always be delivered as they are to the stage.
This commit is contained in:
parent
687c70dffa
commit
130286979d
@ -270,6 +270,13 @@ _clutter_device_manager_update_devices (ClutterDeviceManager *device_manager)
|
||||
{
|
||||
GSList *d;
|
||||
|
||||
/* the user disabled motion events delivery on actors; we
|
||||
* don't perform any picking since the source of the events
|
||||
* will always be set to be the stage
|
||||
*/
|
||||
if (!clutter_get_motion_events_enabled ())
|
||||
return;
|
||||
|
||||
for (d = device_manager->devices; d != NULL; d = d->next)
|
||||
{
|
||||
ClutterInputDevice *device = d->data;
|
||||
|
Loading…
Reference in New Issue
Block a user