]> source.dussan.org Git - tigervnc.git/commitdiff
Do not translate mouse buttons according to the server map; treat VNC mouse buttons...
authorPeter Åstrand <astrand@cendio.se>
Thu, 10 Mar 2005 14:45:22 +0000 (14:45 +0000)
committerPeter Åstrand <astrand@cendio.se>
Thu, 10 Mar 2005 14:45:22 +0000 (14:45 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@239 3789f03b-4d11-0410-bbf8-ca57d06f2519

xc/programs/Xserver/vnc/XserverDesktop.cc

index 9b5294ee2cf01c7eb63494a9546bfefef11be3de..f53caec0f3fc3abdcfd14ad78a1abd0b9783dc0c 100644 (file)
@@ -614,14 +614,9 @@ void XserverDesktop::pointerEvent(const Point& pos, rdr::U8 buttonMask)
 
   for (int i = 0; i < 5; i++) {
     if ((buttonMask ^ oldButtonMask) & (1<<i)) {
-#ifdef XINPUT
-      // God knows why but some idiot decided to conditionally move the pointer
-      // mapping out of DIX, so we guess here that if XINPUT is defined we have
-      // to do it ourselves...
-      ev.u.u.detail = ((DeviceIntPtr)dev)->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<<i)) ? ButtonPress : ButtonRelease;
       (*dev->processInputProc)(&ev, (DeviceIntPtr)dev, 1);
     }