Add a timeout: delay_exit_on_zero_displays

Outputs may disappear momentarily and come back later.
To prevent i3 from exit when no output is available momentarily, add a timeout delay_exit_on_zero_displays.
This commit is contained in:
hwangcc
2015-04-03 16:16:38 +08:00
parent 1546891e6a
commit 2c77d7ceed
9 changed files with 124 additions and 9 deletions

View 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)));