mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-06-05 23:08:51 +02:00
dix: devices must have valuators before touch is initialized
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
756ab88d93
commit
6589f3b55e
1 changed files with 1 additions and 0 deletions
|
|
@ -1647,6 +1647,7 @@ InitTouchClassDeviceStruct(DeviceIntPtr device, unsigned int max_touches,
|
|||
|
||||
BUG_RETURN_VAL(device == NULL, FALSE);
|
||||
BUG_RETURN_VAL(device->touch != NULL, FALSE);
|
||||
BUG_RETURN_VAL(device->valuator == NULL, FALSE);
|
||||
|
||||
/* Check the mode is valid, and at least X and Y axes. */
|
||||
BUG_RETURN_VAL(mode != XIDirectTouch && mode != XIDependentTouch, FALSE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue