]> git.tdb.fi Git - geometrycompositor.git/commitdiff
Remove server grabbing code
authorMikko Rasa <tdb@tdb.fi>
Fri, 11 Dec 2015 16:14:02 +0000 (18:14 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 11 Dec 2015 16:32:42 +0000 (18:32 +0200)
It causes significant slowdown with some applications, and I haven't
actually noticed any tearing without it.

source/main.c

index 637183f02bdbd54f17979da017b49b2854fae447..561159d5be08ebf6802a102049846b0f470d138f 100644 (file)
@@ -528,8 +528,6 @@ void refresh_screens(Compositor *compositor)
 
                glUseProgram(screen->program);
                glBindVertexArray(screen->vertex_array);
-               XGrabServer(compositor->display);
-               glXWaitX();
                for(j=0; j<screen->nwindows; ++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;