mirror of
https://github.com/X11Libre/xf86-input-libinput.git
synced 2026-04-14 10:54:17 +00:00
Allow re-enabling of the sendevents configuration
When re-enabling the device, the mode is 0. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user