]> git.sur5r.net Git - i3/i3/blobdiff - src/main.c
Merge pull request #1638 from hwangcc23/fix-1489
[i3/i3] / src / main.c
index 86e40831902eef2051eb940d7fdd8b33cb91f01e..e8e0daa8c84a4bbfa783ef5afb8f691cda19de5e 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)));