]> source.dussan.org Git - tigervnc.git/commitdiff
Send a fake pointer event on initial connection so that we get rid of that
authorPierre Ossman <ossman@cendio.se>
Thu, 10 Nov 2011 14:59:24 +0000 (14:59 +0000)
committerPierre Ossman <ossman@cendio.se>
Thu, 10 Nov 2011 14:59:24 +0000 (14:59 +0000)
double mouse pointer problem as the server renders its own copy.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4790 3789f03b-4d11-0410-bbf8-ca57d06f2519

vncviewer/Viewport.cxx

index 0de1b8b1035b13a44318e0144915143ea99e39a1..fb19fa72128f605b063952c094d26228a891c1e1 100644 (file)
@@ -100,6 +100,12 @@ Viewport::Viewport(int w, int h, const rfb::PixelFormat& serverPF, CConn* cc_)
   setMenuKey();
 
   OptionsDialog::addCallback(handleOptions, this);
+
+  // Send a fake pointer event so that the server will stop rendering
+  // a server-side cursor. Ideally we'd like to send the actual pointer
+  // position, but we can't really tell when the window manager is done
+  // placing us so we don't have a good time for that.
+  handlePointerEvent(Point(w/2, h/2), 0);
 }