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
@ -255,6 +255,15 @@ bool tree_close(Con *con, kill_window_t kill_window, bool dont_kill_parent, bool
|
||||
x_con_kill(con);
|
||||
|
||||
con_detach(con);
|
||||
|
||||
/* disable urgency timer, if needed */
|
||||
if (con->urgency_timer != NULL) {
|
||||
DLOG("Removing urgency timer of con %p\n", con);
|
||||
workspace_update_urgent_flag(con_get_workspace(con));
|
||||
ev_timer_stop(main_loop, con->urgency_timer);
|
||||
FREE(con->urgency_timer);
|
||||
}
|
||||
|
||||
if (con->type != CT_FLOATING_CON) {
|
||||
/* If the container is *not* floating, we might need to re-distribute
|
||||
* percentage values for the resized containers. */
|
||||
|
Reference in New Issue
Block a user