diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-09-23 12:04:39 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-09-29 12:26:43 +1000 |
commit | 635a1f50bc65512ec491fe71b9dfa8cf9118e2c2 (patch) | |
tree | 934c7d9127348daefa931e615c403093560dc8a2 /Xi/exevents.c | |
parent | 8d1a414cca51e7f8a93470c5aa2e998f5ca1bc9a (diff) |
input: allow for max < min for relative axes on InitValuatorAxisStruct
Relative axes are initialized with 0, -1 but so far this never had any
effect as all users of this function (for relative axes) just set it to the
defaults anyway.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'Xi/exevents.c')
-rw-r--r-- | Xi/exevents.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xi/exevents.c b/Xi/exevents.c index 8a3c25680..a6455e6ac 100644 --- a/Xi/exevents.c +++ b/Xi/exevents.c @@ -1073,7 +1073,7 @@ InitValuatorAxisStruct(DeviceIntPtr dev, int axnum, Atom label, int minval, int { AxisInfoPtr ax; - if (!dev || !dev->valuator || minval > maxval) + if (!dev || !dev->valuator || (minval > maxval && mode == Absolute)) return FALSE; if (axnum >= dev->valuator->numAxes) return FALSE; |