Commit ff057ae9 authored by Peter Hutterer's avatar Peter Hutterer
Browse files

Change property verification order

parent 4554a804
Pipeline #446282 passed with stages
in 1 minute and 13 seconds
......@@ -4833,7 +4833,7 @@ LibinputSetPropertyHighResolutionScroll(DeviceIntPtr dev,
struct xf86libinput *driver_data = pInfo->private;
BOOL enabled;
if (val->format != 8 || val->type != XA_INTEGER || val->size != 1)
if (val->format != 8 || val->size != 1 || val->type != XA_INTEGER)
return BadMatch;
enabled = *(BOOL*)val->data;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment