Correctly select output when pointer query fails

next
Orestis Floros 2019-08-13 16:54:55 +03:00
parent fd7e51927d
commit 14d2a4c7f6
No known key found for this signature in database
GPG Key ID: A09DBD7D3222C1C3
1 changed files with 5 additions and 4 deletions

View File

@ -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();