X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fmain.c;h=91478afa8bbae00e09604f88c0150a44bc798f8f;hb=2c77d7ceed298caf17a78b382e23af2e48377021;hp=8b514178bbbf3283fc9391f11ef5c6f42643ba1a;hpb=1546891e6ab008b0383ebffe85ec0e761f58b7e1;p=i3%2Fi3 diff --git a/src/main.c b/src/main.c index 8b514178..91478afa 100644 --- a/src/main.c +++ b/src/main.c @@ -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)));