Revision: 4780 http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4780&view=rev Author: ossman_ Date: 2011-11-08 10:32:05 +0000 (Tue, 08 Nov 2011) Log Message: ----------- Avoid some unnecessary processing when server side cursor isn't used (which is the common case).
Modified Paths: -------------- trunk/common/rfb/VNCSConnectionST.cxx Modified: trunk/common/rfb/VNCSConnectionST.cxx =================================================================== --- trunk/common/rfb/VNCSConnectionST.cxx 2011-11-08 10:31:04 UTC (rev 4779) +++ trunk/common/rfb/VNCSConnectionST.cxx 2011-11-08 10:32:05 UTC (rev 4780) @@ -285,7 +285,8 @@ void VNCSConnectionST::renderedCursorChange() { if (state() != RFBSTATE_NORMAL) return; - removeRenderedCursor = true; + if (!renderedCursorRect.is_empty()) + removeRenderedCursor = true; if (needRenderedCursor()) drawRenderedCursor = true; } @@ -565,7 +566,8 @@ void VNCSConnectionST::supportsLocalCursor() { if (cp.supportsLocalCursor || cp.supportsLocalXCursor) { - removeRenderedCursor = true; + if (!renderedCursorRect.is_empty()) + removeRenderedCursor = true; drawRenderedCursor = false; setCursor(); } 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