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
This commit is contained in:
Luboš Luňák 2006-11-24 21:28:52 +00:00
parent 049460fa2e
commit 277449f545

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" );