From 14d2a4c7f658a997d9bba5c714631f922dd68f12 Mon Sep 17 00:00:00 2001 From: Orestis Floros Date: Tue, 13 Aug 2019 16:54:55 +0300 Subject: [PATCH] Correctly select output when pointer query fails --- src/main.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index 7ba12bd9..5c86a21e 100644 --- a/src/main.c +++ b/src/main.c @@ -813,12 +813,13 @@ int main(int argc, char *argv[]) { if (!output) { ELOG("ERROR: No screen at (%d, %d), starting on the first screen\n", pointerreply->root_x, pointerreply->root_y); - output = get_first_output(); } - - con_activate(con_descend_focused(output_get_content(output->con))); - free(pointerreply); } + if (!output) { + output = get_first_output(); + } + con_activate(con_descend_focused(output_get_content(output->con))); + free(pointerreply); tree_render();