From f551826ae233978bddd836a27b1ab4787e5eb399 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 21 Nov 2006 20:08:08 +0000 Subject: [PATCH] Wait for all XRender requests to be actually sent and processes, not just queued. svn path=/branches/work/kwin_composite/; revision=606788 --- effects/showfps.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/effects/showfps.cpp b/effects/showfps.cpp index eb101a4bf0..03c066cbcd 100644 --- a/effects/showfps.cpp +++ b/effects/showfps.cpp @@ -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;