Wait for all XRender requests to be actually sent and processes, not just

queued.


svn path=/branches/work/kwin_composite/; revision=606788
This commit is contained in:
Luboš Luňák 2006-11-21 20:08:08 +00:00
parent 277683c4f0
commit f551826ae2

View file

@ -208,6 +208,8 @@ void ShowFpsEffect::paintX( int fps )
void ShowFpsEffect::postPaintScreen()
{
effects->postPaintScreen();
if( dynamic_cast< SceneXrender* >( scene ))
XSync( display(), False ); // make sure all rendering is done
paints[ paints_pos ] = t.elapsed();
if( ++paints_pos == NUM_PAINTS )
paints_pos = 0;