Don't process events while we're creating a new device so we don't start processing events halfway between the new device being set up.
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- src/wcmValidateDevice.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/wcmValidateDevice.c b/src/wcmValidateDevice.c index bcc86d9..0b8387c 100644 --- a/src/wcmValidateDevice.c +++ b/src/wcmValidateDevice.c @@ -498,11 +498,19 @@ wcmHotplugDevice(ClientPtr client, pointer closure ) WacomHotplugInfo *hotplug_info = closure; DeviceIntPtr dev; /* dummy */ +#if HAVE_THREADED_INPUT + input_lock(); +#endif + NewInputDeviceRequest(hotplug_info->input_options, #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 9 hotplug_info->attrs, #endif &dev); +#if HAVE_THREADED_INPUT + input_unlock(); +#endif + input_option_free_list(&hotplug_info->input_options); #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 11 -- 2.7.4 ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. http://sdm.link/zohodev2dev _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel