]> source.dussan.org Git - tigervnc.git/commitdiff
Make sure to start the frame timer after a buffer change
authorPierre Ossman <ossman@cendio.se>
Fri, 22 Sep 2017 14:48:14 +0000 (16:48 +0200)
committerPierre Ossman <ossman@cendio.se>
Fri, 22 Sep 2017 14:48:14 +0000 (16:48 +0200)
The buffer is considered changed right away, so we might not get any
add_changed() calls to trigger a start of the timer.

common/rfb/VNCServerST.cxx

index 43e8f3edafb2c3292ed15e3b55e58d22058399c4..46c4be9b0f4e66cc2cb3720370eb3d1cee8393e2 100644 (file)
@@ -320,6 +320,7 @@ void VNCServerST::setPixelBuffer(PixelBuffer* pb_, const ScreenSet& layout)
 
   comparer = new ComparingUpdateTracker(pb);
   renderedCursorInvalid = true;
+  startFrameClock();
 
   // Make sure that we have at least one screen
   if (screenLayout.num_screens() == 0)