From: Mikko Rasa Date: Fri, 11 Dec 2015 16:14:02 +0000 (+0200) Subject: Remove server grabbing code X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=86c8cc19b0b625cdadd4ce892ecbaeb94a0e5fe2;p=geometrycompositor.git Remove server grabbing code It causes significant slowdown with some applications, and I haven't actually noticed any tearing without it. --- diff --git a/source/main.c b/source/main.c index 637183f..561159d 100644 --- a/source/main.c +++ b/source/main.c @@ -528,8 +528,6 @@ void refresh_screens(Compositor *compositor) glUseProgram(screen->program); glBindVertexArray(screen->vertex_array); - XGrabServer(compositor->display); - glXWaitX(); for(j=0; jnwindows; ++j) { CompositedWindow *window = &screen->windows[j]; @@ -543,7 +541,6 @@ void refresh_screens(Compositor *compositor) XDamageSubtract(compositor->display, window->damage, None, None); } } - XUngrabServer(compositor->display); glXSwapBuffers(compositor->display, screen->glx_window); screen->dirty = 0;