implement delayed urgency hint reset
If there is a client with an urgency hint on another workspace and switching to this workspace would cause the urgency to be reset (by moving the focusing to the client), delay the reset by some time. This gives the user the chance to see it. This commit adds the possibility to configure the urgency delay timer duration using the 'force_display_urgency_hint' directive. Also, documentation and a testcase was added to allow for automated checks of the intended behavior. fixes #482
This commit is contained in:
committed by
Michael Stapelberg
parent
e15e37f922
commit
28104a480c
@ -420,6 +420,10 @@ void load_configuration(xcb_connection_t *conn, const char *override_configpath,
|
||||
/* Set default_orientation to NO_ORIENTATION for auto orientation. */
|
||||
config.default_orientation = NO_ORIENTATION;
|
||||
|
||||
/* Set default urgency reset delay to 500ms */
|
||||
if (config.workspace_urgency_timer == 0)
|
||||
config.workspace_urgency_timer = 0.5;
|
||||
|
||||
parse_configuration(override_configpath);
|
||||
|
||||
if (reload) {
|
||||
|
Reference in New Issue
Block a user