From a4fb161c3e46919d69360794ccb27bc5df8d3340 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 18 Nov 2014 16:36:44 +1000 Subject: [PATCH] Allow re-enabling of the sendevents configuration When re-enabling the device, the mode is 0. Signed-off-by: Peter Hutterer --- src/libinput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libinput.c b/src/libinput.c index 91211ca..f237a9b 100644 --- a/src/libinput.c +++ b/src/libinput.c @@ -1042,7 +1042,7 @@ LibinputSetPropertySendEvents(DeviceIntPtr dev, return BadValue; /* Only one bit must be set */ - if (!new_mode || ((new_mode & (new_mode - 1)) != 0)) + if (new_mode && ((new_mode & (new_mode - 1)) != 0)) return BadValue; } else { driver_data->options.sendevents = *data;