]> source.dussan.org Git - tigervnc.git/commitdiff
Fix rendering of cursor on local framebuffer. It was broken by r3717.
authorPierre Ossman <ossman@cendio.se>
Mon, 22 Jun 2009 11:55:20 +0000 (11:55 +0000)
committerPierre Ossman <ossman@cendio.se>
Mon, 22 Jun 2009 11:55:20 +0000 (11:55 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/branches/1_0@3855 3789f03b-4d11-0410-bbf8-ca57d06f2519

unix/vncviewer/DesktopWindow.cxx

index 095f14fe1f7e9cb9ac71abffaf120b01841c7420..51f3b850c434da34ff7e32886b2650f51c67277d 100644 (file)
@@ -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();
     }
   }
 }