summaryrefslogtreecommitdiff
path: root/driver/xf86-input-ws
diff options
context:
space:
mode:
authorAlexandr Shadchin <shadchin@cvs.openbsd.org>2011-11-09 16:07:14 +0000
committerAlexandr Shadchin <shadchin@cvs.openbsd.org>2011-11-09 16:07:14 +0000
commitf6b9408f6db7db396d846963a023da2d355f6e8f (patch)
tree60eb57715fdfd825823308b015d7f6d7ce5ff246 /driver/xf86-input-ws
parent69f59818646092704ae2b6e114f637558e3ce67e (diff)
Ignore option Raw for mices. (was more noise than useful information)
ok matthieu@
Diffstat (limited to 'driver/xf86-input-ws')
-rw-r--r--driver/xf86-input-ws/src/ws.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/driver/xf86-input-ws/src/ws.c b/driver/xf86-input-ws/src/ws.c
index bcf23e82b..8a159dbb5 100644
--- a/driver/xf86-input-ws/src/ws.c
+++ b/driver/xf86-input-ws/src/ws.c
@@ -13,7 +13,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $OpenBSD: ws.c,v 1.43 2011/11/09 16:04:50 shadchin Exp $ */
+/* $OpenBSD: ws.c,v 1.44 2011/11/09 16:07:13 shadchin Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -246,19 +246,13 @@ wsPreInit(InputDriverPtr drv, InputInfoPtr pInfo, int flags)
if (priv->type == WSMOUSE_TYPE_TPANEL) {
pInfo->type_name = XI_TOUCHSCREEN;
priv->raw = xf86SetBoolOption(pInfo->options, "Raw", 1);
- } else {
- pInfo->type_name = XI_MOUSE;
- priv->raw = xf86SetBoolOption(pInfo->options, "Raw", 0);
if (priv->raw) {
- xf86IDrvMsg(pInfo, X_WARNING,
- "Device is not a touch panel,"
- "ignoring 'Option \"Raw\"'\n");
- priv->raw = 0;
+ xf86IDrvMsg(pInfo, X_CONFIG,
+ "device will work in raw mode\n");
}
- }
- if (priv->raw) {
- xf86IDrvMsg(pInfo, X_CONFIG,
- "device will work in raw mode\n");
+ } else {
+ pInfo->type_name = XI_MOUSE;
+ priv->raw = 0;
}
if (priv->type == WSMOUSE_TYPE_TPANEL && priv->raw) {