mirror of
https://github.com/X11Libre/xf86-input-void.git
synced 2026-04-14 10:54:20 +00:00
Return proper default for unknown values in pInfo->device_control.
Signed-off-by: Terry Lambert <tlambert@chromium.org> Reviewed-by: Stephane Marchesin <marcheu@chromium.org> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
committed by
Peter Hutterer
parent
e2eabdd0bd
commit
dfb19f9131
@@ -171,6 +171,9 @@ xf86VoidControlProc(DeviceIntPtr device, int what)
|
||||
case DEVICE_CLOSE:
|
||||
device->public.on = FALSE;
|
||||
break;
|
||||
|
||||
default:
|
||||
return BadValue;
|
||||
}
|
||||
return Success;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user