mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-03-24 09:44:28 +00:00
Set the default resolution to 0
If we don't know the resolution, set it to 0. This is invalid, and tells
the X client that we don't know the resolution, rather than reporting an
incorrect value.
This value was originally from commit
6271494faa, which is the initial commit
from Adam Jackson adding absolute axis support.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
committed by
Peter Hutterer
parent
965338e9d0
commit
8c55e94a6a
@@ -1323,7 +1323,7 @@ EvdevAddAbsValuatorClass(DeviceIntPtr device)
|
||||
|
||||
for (axis = ABS_X; axis < ABS_MT_SLOT; axis++) {
|
||||
int axnum = pEvdev->axis_map[axis];
|
||||
int resolution = 10000;
|
||||
int resolution = 0;
|
||||
|
||||
if (axnum == -1)
|
||||
continue;
|
||||
@@ -1345,7 +1345,7 @@ EvdevAddAbsValuatorClass(DeviceIntPtr device)
|
||||
#ifdef MULTITOUCH
|
||||
for (axis = ABS_MT_TOUCH_MAJOR; axis <= ABS_MAX; axis++) {
|
||||
int axnum = pEvdev->axis_map[axis];
|
||||
int resolution = 10000;
|
||||
int resolution = 0;
|
||||
int j;
|
||||
BOOL skip = FALSE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user