]> git.pld-linux.org Git - packages/tigervnc.git/commitdiff
- keep pointer in sync when using module (upstream bug #152)
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 3 Aug 2014 07:43:31 +0000 (09:43 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 3 Aug 2014 07:43:31 +0000 (09:43 +0200)
tigervnc-pointersync.patch [new file with mode: 0644]

diff --git a/tigervnc-pointersync.patch b/tigervnc-pointersync.patch
new file mode 100644 (file)
index 0000000..3ac8f2c
--- /dev/null
@@ -0,0 +1,25 @@
+diff -up tigervnc-1.3.0/unix/xserver/hw/vnc/Input.cc.pointersync tigervnc-1.3.0/unix/xserver/hw/vnc/Input.cc
+--- tigervnc-1.3.0/unix/xserver/hw/vnc/Input.cc.pointersync    2014-07-14 16:27:49.412251632 +0100
++++ tigervnc-1.3.0/unix/xserver/hw/vnc/Input.cc        2014-07-14 16:29:06.968643301 +0100
+@@ -1,5 +1,5 @@
+ /* Copyright (C) 2009 TightVNC Team
+- * Copyright (C) 2009 Red Hat, Inc.
++ * Copyright (C) 2009, 2014 Red Hat, Inc.
+  * Copyright 2013 Pierre Ossman for Cendio AB
+  *
+  * This is free software; you can redistribute it and/or modify
+@@ -202,6 +202,14 @@ void InputDevice::PointerMove(const rfb:
+ const rfb::Point &InputDevice::getPointerPos(void)
+ {
++      if (pointerDev != NULL) {
++              int x, y;
++
++              GetSpritePosition (pointerDev, &x, &y);
++              cursorPos.x = x;
++              cursorPos.y = y;
++      }
++
+       return cursorPos;
+ }
This page took 0.036386 seconds and 4 git commands to generate.