From: Mikko Rasa Date: Sat, 12 Dec 2015 18:13:31 +0000 (+0200) Subject: Don't try to update vertices of disabled monitors X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=fe0ebf06558d632f06e3a33a8cf35273fcec6d97;p=geometrycompositor.git Don't try to update vertices of disabled monitors --- diff --git a/source/main.c b/source/main.c index 5393784..04e6620 100644 --- a/source/main.c +++ b/source/main.c @@ -644,7 +644,8 @@ void update_geometry_correction(Compositor *compositor, CompositedScreen *screen monitor->vertical_center = values[i*4+2]/10000.0f; monitor->perspective = values[i*4+3]/10000.0f; - update_monitor_vertices(screen, monitor); + if(monitor->enabled) + update_monitor_vertices(screen, monitor); } name_ptr += strlen(name_ptr)+1;