Revision: 4790
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4790&view=rev
Author:   ossman_
Date:     2011-11-10 14:59:24 +0000 (Thu, 10 Nov 2011)
Log Message:
-----------
Send a fake pointer event on initial connection so that we get rid of that
double mouse pointer problem as the server renders its own copy.

Modified Paths:
--------------
    trunk/vncviewer/Viewport.cxx

Modified: trunk/vncviewer/Viewport.cxx
===================================================================
--- trunk/vncviewer/Viewport.cxx        2011-11-10 13:30:39 UTC (rev 4789)
+++ trunk/vncviewer/Viewport.cxx        2011-11-10 14:59:24 UTC (rev 4790)
@@ -100,6 +100,12 @@
   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);
 }
 
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Tigervnc-commits mailing list
Tigervnc-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits

Reply via email to