From: Peter Åstrand Date: Thu, 10 Mar 2005 14:45:22 +0000 (+0000) Subject: Do not translate mouse buttons according to the server map; treat VNC mouse buttons... X-Git-Tag: v0.0.90~384^2~596 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0aafa76cbe84310b564ddb84ce0e0c081961d775;p=tigervnc.git Do not translate mouse buttons according to the server map; treat VNC mouse buttons as logical buttons. This solves the problem with LeftHanded+LeftHanded=RightHanded, and is also much more in line with the keyboard handling: After all, keysyms are logical. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@239 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- diff --git a/xc/programs/Xserver/vnc/XserverDesktop.cc b/xc/programs/Xserver/vnc/XserverDesktop.cc index 9b5294ee..f53caec0 100644 --- a/xc/programs/Xserver/vnc/XserverDesktop.cc +++ b/xc/programs/Xserver/vnc/XserverDesktop.cc @@ -614,14 +614,9 @@ void XserverDesktop::pointerEvent(const Point& pos, rdr::U8 buttonMask) for (int i = 0; i < 5; i++) { if ((buttonMask ^ oldButtonMask) & (1<button->map[i + 1]; -#else + // Do not use the pointer mapping. Treat VNC buttons as logical + // buttons. ev.u.u.detail = i + 1; -#endif ev.u.u.type = (buttonMask & (1<processInputProc)(&ev, (DeviceIntPtr)dev, 1); }