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:
Carlos Garnacho 2011-09-06 19:22:59 +02:00
parent f714f01b45
commit 79ff1b669c

View File

@ -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 ||