mirror of
https://gitlab.freedesktop.org/xorg/proto/xorgproto.git
synced 2026-05-07 07:18:03 +02:00
Define the error cases for XSetDeviceMode better.
Take the error codes as described in the man page for XSetDeviceMode. This is more likely to be what clients expect, especially since the protocol spec doesn't actually define when BadMode is to be reported. This behaviour is the same as specified in the XSetDeviceMode man page. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Fernando Carrijo <fcarrijo@yahoo.com.br>
This commit is contained in:
parent
617c4a2db4
commit
993ca70d7e
1 changed files with 3 additions and 1 deletions
|
|
@ -577,7 +577,9 @@
|
|||
already has the device open with a different mode. It will fail
|
||||
and return AlreadyGrabbed if another client has the device
|
||||
grabbed. The request will fail with a BadMatch error if the
|
||||
requested mode is not supported by the device.
|
||||
device has no valuators and reports no axes of motion. The
|
||||
request will fail with a BadMode error if the requested mode
|
||||
is not supported by the device.
|
||||
|
||||
SetDeviceMode
|
||||
device:DEVICE
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue