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:
@ -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);
|
||||
|
Reference in New Issue
Block a user