aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xwin/winmouse.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-01-26 09:27:48 +0100
committermarha <marha@users.sourceforge.net>2012-01-26 09:27:48 +0100
commitd99165260070ce9668f3eeac8bb010393f490c0a (patch)
treeafdd34a5707eee117c9827aeb8bb5237cc9d14fa /xorg-server/hw/xwin/winmouse.c
parent5283d47a3bf49ffbf972465908f1e30aa6698509 (diff)
downloadvcxsrv-d99165260070ce9668f3eeac8bb010393f490c0a.tar.gz
vcxsrv-d99165260070ce9668f3eeac8bb010393f490c0a.tar.bz2
vcxsrv-d99165260070ce9668f3eeac8bb010393f490c0a.zip
turn on -emulate3buttons if less than 3 mouse buttons are reported
Added -noemulate3buttons
Diffstat (limited to 'xorg-server/hw/xwin/winmouse.c')
-rw-r--r--xorg-server/hw/xwin/winmouse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xorg-server/hw/xwin/winmouse.c b/xorg-server/hw/xwin/winmouse.c
index 75e51c2f9..9debead0d 100644
--- a/xorg-server/hw/xwin/winmouse.c
+++ b/xorg-server/hw/xwin/winmouse.c
@@ -71,6 +71,7 @@ winMouseProc (DeviceIntPtr pDeviceInt, int iState)
case DEVICE_INIT:
/* Get number of mouse buttons */
lngMouseButtons = GetSystemMetrics(SM_CMOUSEBUTTONS);
+ winDebug("%d mouse buttons found\n", lngMouseButtons);
/* Mapping of windows events to X events:
* LEFT:1 MIDDLE:2 RIGHT:3
@@ -81,7 +82,6 @@ winMouseProc (DeviceIntPtr pDeviceInt, int iState)
*/
if (lngMouseButtons < 3)
lngMouseButtons = 3;
- winDebug("%d mouse buttons found\n", lngMouseButtons);
/* allocate memory:
* number of buttons + 2x mouse wheel event + 1 extra (offset for map)