diff options
author | Matthieu Herrb <matthieu@openbsd.org> | 2009-11-25 19:36:57 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@openbsd.org> | 2009-11-25 19:36:57 +0000 |
commit | 83ca9fec3b710cce807faf91d4a5a54b9031c8c0 (patch) | |
tree | d9c00174421fbc563244be5e52e02708b8cb99eb | |
parent | f9bf833b13153f96720a2b4d7b5549dcc8f36509 (diff) |
Only default to raw mode for touchpanels. The raw mode doesn't make
sense for mices.
-rw-r--r-- | src/ws.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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"); |