summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2009-06-22 11:55:20 +0000
committerPierre Ossman <ossman@cendio.se>2009-06-22 11:55:20 +0000
commit69fcffc75e8ac5b2721b2077ede5e3eb7484b479 (patch)
tree56db4b76e7af75e5b02f6e0dd05732a1b093397a
parent9c99d1f7cdc4e921de592bc3df2361492d2ab5c3 (diff)
downloadtigervnc-69fcffc75e8ac5b2721b2077ede5e3eb7484b479.tar.gz
tigervnc-69fcffc75e8ac5b2721b2077ede5e3eb7484b479.zip
Fix rendering of cursor on local framebuffer. It was broken by r3717.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/branches/1_0@3855 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rw-r--r--unix/vncviewer/DesktopWindow.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/unix/vncviewer/DesktopWindow.cxx b/unix/vncviewer/DesktopWindow.cxx
index 095f14fe..51f3b850 100644
--- a/unix/vncviewer/DesktopWindow.cxx
+++ b/unix/vncviewer/DesktopWindow.cxx
@@ -216,6 +216,7 @@ void DesktopWindow::hideLocalCursor()
if (cursorVisible) {
cursorVisible = false;
im->imageRect(cursorBackingRect, cursorBacking.data);
+ damageRect(cursorBackingRect);
}
}
@@ -237,6 +238,7 @@ void DesktopWindow::showLocalCursor()
im->getImage(cursorBacking.data, cursorBackingRect);
im->maskRect(cursorRect, cursor.data, cursor.mask.buf);
+ damageRect(cursorBackingRect);
}
}
@@ -355,6 +357,7 @@ void DesktopWindow::handlePointerEvent(const Point& pos, int buttonMask)
cursorPos = pos;
showLocalCursor();
}
+ updateWindow();
}
}
}