diff --git a/tigervnc-pointersync.patch b/tigervnc-pointersync.patch new file mode 100644 index 0000000..e0d60fa --- /dev/null +++ b/tigervnc-pointersync.patch @@ -0,0 +1,18 @@ +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 2013-07-01 13:41:24.000000000 +0100 ++++ tigervnc-1.3.0/unix/xserver/hw/vnc/Input.cc 2014-05-22 11:47:16.707816457 +0100 +@@ -197,6 +197,14 @@ void InputDevice::PointerMove(const rfb: + + void InputDevice::PointerSync(void) + { ++ if (initialized) { ++ int x, y; ++ ++ GetSpritePosition (pointerDev, &x, &y); ++ cursorPos.x = x; ++ cursorPos.y = y; ++ } ++ + if (cursorPos.equals(oldCursorPos)) + return; + diff --git a/tigervnc.spec b/tigervnc.spec index 40892da..8c144e6 100644 --- a/tigervnc.spec +++ b/tigervnc.spec @@ -1,6 +1,6 @@ Name: tigervnc Version: 1.3.0 -Release: 10%{?dist} +Release: 11%{?dist} Summary: A TigerVNC remote display system Group: User Interface/Desktops @@ -49,6 +49,7 @@ Patch9: tigervnc-shebang.patch Patch12: tigervnc-zrle-crash.patch Patch13: tigervnc-cursor.patch Patch14: tigervnc-CVE-2014-0011.patch +Patch15: tigervnc-pointersync.patch %description Virtual Network Computing (VNC) is a remote display system which @@ -180,6 +181,9 @@ popd # Fixed heap-based buffer overflow (CVE-2014-0011, bug #1050928). %patch14 -p1 -b .CVE-2014-0011 +# Keep pointer in sync when using module (upstream bug #152). +%patch15 -p1 -b .pointersync + %build %ifarch sparcv9 sparc64 s390 s390x export CFLAGS="$RPM_OPT_FLAGS -fPIC" @@ -348,6 +352,9 @@ fi %{_datadir}/icons/hicolor/*/apps/* %changelog +* Thu May 22 2014 Tim Waugh 1.3.0-11 +- Keep pointer in sync when using module (upstream bug #152). + * Wed Mar 19 2014 Tim Waugh 1.3.0-10 - Fixed heap-based buffer overflow (CVE-2014-0011, bug #1050928).