device-manager: don't select events for disabled devices

I.e. only select events for core devices or devices explicitly enabled
by clients.

https://bugzilla.gnome.org/show_bug.cgi?id=673644
This commit is contained in:
Cosimo Cecchi 2012-04-23 20:04:58 -04:00
parent 85323f09a5
commit b746044415

View File

@ -323,7 +323,8 @@ _clutter_device_manager_select_stage_events (ClutterDeviceManager *device_manage
{
ClutterInputDevice *device = d->data;
_clutter_input_device_select_stage_events (device, stage, event_flags);
if (device->is_enabled)
_clutter_input_device_select_stage_events (device, stage, event_flags);
}
}