Ungrab X before doing the double-buffering swap, as that one

may involve waiting to sync to vblank.


svn path=/branches/work/kwin_composite/; revision=607501
icc-effect-5.14.5
Luboš Luňák 2006-11-24 21:28:52 +00:00
parent 049460fa2e
commit 277449f545
1 changed files with 1 additions and 1 deletions

View File

@ -448,8 +448,8 @@ void SceneOpenGL::paint( QRegion damage, ToplevelList toplevels )
int mask = 0;
paintScreen( &mask, &damage ); // call generic implementation
glPopMatrix();
ungrabXServer(); // ungrab before flushBuffer(), it may wait for vsync
flushBuffer( mask, damage );
ungrabXServer();
// do cleanup
stacking_order.clear();
checkGLError( "PostPaint" );