Merge branch 'fix_urgent_delay' into 'master'
Fix one second delay before urgent task starts to blink See merge request o9000/tint2!30
This commit is contained in:
commit
0e4b3bd32e
1 changed files with 2 additions and 2 deletions
|
@ -758,8 +758,8 @@ void blink_urgent(void *arg)
|
||||||
GSList *urgent_task = urgent_list;
|
GSList *urgent_task = urgent_list;
|
||||||
while (urgent_task) {
|
while (urgent_task) {
|
||||||
Task *t = urgent_task->data;
|
Task *t = urgent_task->data;
|
||||||
if (t->urgent_tick < max_tick_urgent) {
|
if (t->urgent_tick <= max_tick_urgent) {
|
||||||
if (t->urgent_tick++ % 2)
|
if (++t->urgent_tick % 2)
|
||||||
set_task_state(t, TASK_URGENT);
|
set_task_state(t, TASK_URGENT);
|
||||||
else
|
else
|
||||||
set_task_state(t, window_is_iconified(t->win) ? TASK_ICONIFIED : TASK_NORMAL);
|
set_task_state(t, window_is_iconified(t->win) ? TASK_ICONIFIED : TASK_NORMAL);
|
||||||
|
|
Loading…
Reference in a new issue