summaryrefslogtreecommitdiffstats
path: root/unix/xserver/hw/vnc/Input.cc
diff options
context:
space:
mode:
Diffstat (limited to 'unix/xserver/hw/vnc/Input.cc')
-rw-r--r--unix/xserver/hw/vnc/Input.cc12
1 files changed, 4 insertions, 8 deletions
diff --git a/unix/xserver/hw/vnc/Input.cc b/unix/xserver/hw/vnc/Input.cc
index 1474f93a..46b02fd1 100644
--- a/unix/xserver/hw/vnc/Input.cc
+++ b/unix/xserver/hw/vnc/Input.cc
@@ -116,8 +116,8 @@ static void enqueueEvents(DeviceIntPtr dev, int n)
}
#endif /* XORG < 111 */
-InputDevice::InputDevice(rfb::VNCServerST *_server)
- : server(_server), initialized(false), oldButtonMask(0)
+InputDevice::InputDevice()
+ : initialized(false), oldButtonMask(0)
{
int i;
@@ -195,13 +195,9 @@ void InputDevice::PointerMove(const rfb::Point &pos)
cursorPos = pos;
}
-void InputDevice::PointerSync(void)
+const rfb::Point &InputDevice::getPointerPos(void)
{
- if (cursorPos.equals(oldCursorPos))
- return;
-
- oldCursorPos = cursorPos;
- server->setCursorPos(cursorPos);
+ return cursorPos;
}
static int pointerProc(DeviceIntPtr pDevice, int onoff)