From 95df11a9bb98b4454f25645ad47c2c5eaa34c695 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 11 Dec 2015 19:25:41 +0200 Subject: [PATCH] Don't refresh non-dirty screens --- source/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/main.c b/source/main.c index b26c465..6886685 100644 --- a/source/main.c +++ b/source/main.c @@ -634,6 +634,9 @@ void refresh_screens(Compositor *compositor) for(i=0; inscreens; ++i) { CompositedScreen *screen = &compositor->screens[i]; + if(!screen->dirty) + continue; + use_gl(compositor, screen); glClearColor(0.5f, 0.5f, 0.5f, 0.0f); -- 2.45.2