]> git.tdb.fi Git - geometrycompositor.git/commitdiff
Don't try to update vertices of disabled monitors
authorMikko Rasa <tdb@tdb.fi>
Sat, 12 Dec 2015 18:13:31 +0000 (20:13 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 12 Dec 2015 18:13:31 +0000 (20:13 +0200)
source/main.c

index 539378465600ae409bdb1d709545909ec465af9c..04e662025dbf2f6eaf98e2dec919a28708544c6c 100644 (file)
@@ -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;