]> git.sur5r.net Git - i3/i3/blobdiff - src/main.c
Add a timeout: delay_exit_on_zero_displays
[i3/i3] / src / main.c
index 8b514178bbbf3283fc9391f11ef5c6f42643ba1a..91478afa8bbae00e09604f88c0150a44bc798f8f 100644 (file)
@@ -621,6 +621,8 @@ int main(int argc, char *argv[]) {
             ELOG("ERROR: No screen at (%d, %d), starting on the first screen\n",
                  pointerreply->root_x, pointerreply->root_y);
             output = get_first_output();
+            if (!output)
+                die("No usable outputs available.\n");
         }
 
         con_focus(con_descend_focused(output_get_content(output->con)));