mirror of
https://github.com/X11Libre/xf86-input-libinput.git
synced 2026-03-24 09:34:04 +00:00
Allow disabling scroll methods
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -1298,7 +1298,7 @@ LibinputSetPropertyScrollMethods(DeviceIntPtr dev,
|
||||
if (__builtin_popcount(modes) > 1)
|
||||
return BadValue;
|
||||
|
||||
if ((modes & supported) == 0)
|
||||
if (modes && (modes & supported) == 0)
|
||||
return BadValue;
|
||||
} else {
|
||||
driver_data->options.scroll_method = modes;
|
||||
|
||||
Reference in New Issue
Block a user