projects
/
platform
/
upstream
/
xorg-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
756ab88
)
dix: devices must have valuators before touch is initialized
author
Peter Hutterer
<peter.hutterer@who-t.net>
Mon, 13 May 2013 22:31:19 +0000
(08:31 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Thu, 23 May 2013 05:35:11 +0000
(15:35 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
dix/devices.c
patch
|
blob
|
history
diff --git
a/dix/devices.c
b/dix/devices.c
index
291b767
..
527eea0
100644
(file)
--- a/
dix/devices.c
+++ b/
dix/devices.c
@@
-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);