From 277449f545409668ea428bee561b85db34948d50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Fri, 24 Nov 2006 21:28:52 +0000 Subject: [PATCH] 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 --- scene_opengl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene_opengl.cpp b/scene_opengl.cpp index 9dc10b4f0f..70b99c488a 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -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" );