From 94ca25456fd27942a546d75551d9a0ef553ed9ba Mon Sep 17 00:00:00 2001 From: Alexandr Shadchin Date: Tue, 12 Jun 2012 17:11:24 +0000 Subject: Small cleanup ok matthieu@ --- driver/xf86-input-ws/src/emumb.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'driver') diff --git a/driver/xf86-input-ws/src/emumb.c b/driver/xf86-input-ws/src/emumb.c index d77af59a6..b07f70e2b 100644 --- a/driver/xf86-input-ws/src/emumb.c +++ b/driver/xf86-input-ws/src/emumb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: emumb.c,v 1.10 2012/06/12 17:06:43 shadchin Exp $ */ +/* $OpenBSD: emumb.c,v 1.11 2012/06/12 17:11:23 shadchin Exp $ */ /* * Copyright 1990,91 by Thomas Roell, Dinkelscherben, Germany. * Copyright 1993 by David Dawes @@ -395,9 +395,6 @@ wsmbEmuInitProperty(DeviceIntPtr dev) DBG(1, ErrorF("wsmbEmuInitProperty\n")); - if (!dev->button) /* don't init prop for keyboards */ - return; - prop_mbemu = MakeAtom(WS_PROP_MIDBUTTON, strlen(WS_PROP_MIDBUTTON), TRUE); rc = XIChangeDeviceProperty(dev, prop_mbemu, XA_INTEGER, 8, @@ -411,12 +408,9 @@ wsmbEmuInitProperty(DeviceIntPtr dev) XISetDevicePropertyDeletable(dev, prop_mbemu, FALSE); prop_mbtimeout = MakeAtom(WS_PROP_MIDBUTTON_TIMEOUT, - strlen(WS_PROP_MIDBUTTON_TIMEOUT), - TRUE); - rc = XIChangeDeviceProperty(dev, prop_mbtimeout, - XA_INTEGER, 32, PropModeReplace, 1, - &priv->emulateMB.timeout, FALSE); - + strlen(WS_PROP_MIDBUTTON_TIMEOUT), TRUE); + rc = XIChangeDeviceProperty(dev, prop_mbtimeout, XA_INTEGER, 32, + PropModeReplace, 1, &priv->emulateMB.timeout, FALSE); if (rc != Success) { xf86IDrvMsg(pInfo, X_ERROR, "cannot create device property %s: %d\n", -- cgit v1.2.3