forked from AuroraMiddleware/gtk
x11: Don't create GdkDevices for disabled devices
Fixes bug #658379 - Disabled devices still added to list on startup, spotted by Bastien Nocera. Do not create GdkDevices for disabled devices on device manager construction, leading to a confusing initial state.
This commit is contained in:
parent
f714f01b45
commit
79ff1b669c
@ -417,6 +417,10 @@ gdk_x11_device_manager_xi2_constructed (GObject *object)
|
||||
for (i = 0; i < ndevices; i++)
|
||||
{
|
||||
dev = &info[i];
|
||||
|
||||
if (!dev->enabled)
|
||||
continue;
|
||||
|
||||
add_device (device_manager, dev, FALSE);
|
||||
|
||||
if (dev->use == XIMasterPointer ||
|
||||
|
Loading…
Reference in New Issue
Block a user