]> git.tdb.fi Git - geometrycompositor.git/commitdiff
Don't refresh non-dirty screens
authorMikko Rasa <tdb@tdb.fi>
Fri, 11 Dec 2015 17:25:41 +0000 (19:25 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 11 Dec 2015 17:25:41 +0000 (19:25 +0200)
source/main.c

index b26c46597beb22008963c5f01758aa96162ef73b..6886685605d828f59c05af77b61358d841e6f464 100644 (file)
@@ -634,6 +634,9 @@ void refresh_screens(Compositor *compositor)
        for(i=0; i<compositor->nscreens; ++i)
        {
                CompositedScreen *screen = &compositor->screens[i];
+               if(!screen->dirty)
+                       continue;
+
                use_gl(compositor, screen);
 
                glClearColor(0.5f, 0.5f, 0.5f, 0.0f);