Merge pull request from hwangcc23/fix-1489

Add a timeout: delay_exit_on_zero_displays
This commit is contained in:
Michael Stapelberg
2015-05-05 00:43:43 -07:00
9 changed files with 124 additions and 9 deletions

@@ -167,6 +167,10 @@ struct Config {
* flag can be delayed using an urgency timer. */
float workspace_urgency_timer;
/** Use a timer to delay exiting when no output is available.
* This can prevent i3 from exiting when all outputs disappear momentarily. */
float zero_disp_exit_timer_ms;
/** Behavior when a window sends a NET_ACTIVE_WINDOW message. */
enum {
/* Focus if the target workspace is visible, set urgency hint otherwise. */

@@ -51,6 +51,7 @@ CFGFUN(force_focus_wrapping, const char *value);
CFGFUN(force_xinerama, const char *value);
CFGFUN(fake_outputs, const char *outputs);
CFGFUN(force_display_urgency_hint, const long duration_ms);
CFGFUN(delay_exit_on_zero_displays, const long duration_ms);
CFGFUN(focus_on_window_activation, const char *mode);
CFGFUN(show_marks, const char *value);
CFGFUN(hide_edge_borders, const char *borders);