summaryrefslogtreecommitdiff
path: root/man/XIBarrierReleasePointer.txt
diff options
context:
space:
mode:
authorNiels Ole Salscheider <niels_ole@salscheider-online.de>2016-10-07 21:46:44 +0200
committerPeter Hutterer <peter.hutterer@who-t.net>2016-10-13 12:57:22 +1000
commitb843fe1c0a6b4dbaae9f364042c6a247249305ef (patch)
treebab7d26c6fd56da8b26164edcc0ac548c09eb85c /man/XIBarrierReleasePointer.txt
parent8e0476653dd134cee84f4e893f656b2f93c4e3b0 (diff)
SizeClassInfo can return 0 even without an error
Catch the error case separately. Commit 19a9cd607d added length checking to SizeClassInfo but re-used the return value of 0 for an error. A device without classes (as is initialized by xf86-input-libinput for tablets) can legitimately return 0 and erroneously triggers an error. Fix this by using a separate value for the error. Reproducible by calling XListInputDevices() with a tablet attached. This fixes a regression introduced in commit 19a9cd607d. Signed-off-by: Niels Ole Salscheider <niels_ole@salscheider-online.de> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'man/XIBarrierReleasePointer.txt')
0 files changed, 0 insertions, 0 deletions