diff options
Diffstat (limited to 'src/evdev_axes.c')
-rw-r--r-- | src/evdev_axes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev_axes.c b/src/evdev_axes.c index d1bafd9..0d9b5a7 100644 --- a/src/evdev_axes.c +++ b/src/evdev_axes.c @@ -385,7 +385,7 @@ EvdevAxisAbsNew(InputInfoPtr pInfo) k = xf86SetIntOption(pInfo->options, "AbsoluteScreen", 0); else k = xf86SetIntOption(pInfo->options, "AbsoluteScreen", -1); - if (k < screenInfo.numScreens) { + if (k < screenInfo.numScreens && k >= 0) { state->abs->screen = k; xf86Msg(X_CONFIG, "%s: AbsoluteScreen: %d.\n", pInfo->name, k); } else { |