summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@openbsd.org>2009-11-25 19:36:57 +0000
committerMatthieu Herrb <matthieu@openbsd.org>2009-11-25 19:36:57 +0000
commit83ca9fec3b710cce807faf91d4a5a54b9031c8c0 (patch)
treed9c00174421fbc563244be5e52e02708b8cb99eb
parentf9bf833b13153f96720a2b4d7b5549dcc8f36509 (diff)
Only default to raw mode for touchpanels. The raw mode doesn't make
sense for mices.
-rw-r--r--src/ws.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ws.c b/src/ws.c
index f50cbc6..9057d9e 100644
--- a/src/ws.c
+++ b/src/ws.c
@@ -285,7 +285,6 @@ wsPreInit(InputDriverPtr drv, IDevPtr dev, int flags)
" or \"UD\"\n");
}
}
- priv->raw = xf86SetBoolOption(pInfo->options, "Raw", 1);
if (wsOpen(pInfo) != Success) {
goto fail;
}
@@ -293,10 +292,12 @@ wsPreInit(InputDriverPtr drv, IDevPtr dev, int flags)
wsClose(pInfo);
goto fail;
}
- if (priv->type == WSMOUSE_TYPE_TPANEL)
+ if (priv->type == WSMOUSE_TYPE_TPANEL) {
pInfo->type_name = XI_TOUCHSCREEN;
- else {
+ priv->raw = xf86SetBoolOption(pInfo->options, "Raw", 1);
+ } else {
pInfo->type_name = XI_MOUSE;
+ priv->raw = xf86SetBoolOption(pInfo->options, "Raw", 0);
if (priv->raw) {
xf86Msg(X_WARNING, "Device is not a touch panel,"
"ignoring 'Option \"Raw\"'\n");