]> git.sur5r.net Git - i3/i3/commitdiff
Disable RandR if no outputs are found (Thanks fallen)
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 19 Mar 2010 17:51:19 +0000 (18:51 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 19 Mar 2010 17:51:19 +0000 (18:51 +0100)
src/randr.c

index 7531ecf2cd9facebcd4b3d1a189ba819cbf06e9d..3be654a76c21d80838010ed603f577041aca3eb7 100644 (file)
@@ -458,6 +458,11 @@ void randr_query_outputs(xcb_connection_t *conn) {
                 }
         }
 
+        if (TAILQ_EMPTY(&outputs)) {
+                ELOG("No outputs found via RandR, disabling\n");
+                disable_randr(conn);
+        }
+
         ewmh_update_workarea();
 
         /* Just go through each active output and associate one workspace */