commit 87b2b5ba9d3f28e0cf2c139f25c08017a118bf46
parent f05cef75105f6fc31c2fc5f46ccf950aa84e663e
Author: Lucas de Sena <lucas@seninha.org>
Date: Thu, 6 Jul 2023 21:59:57 -0300
always clear urgency when focusing a tab
Diffstat:
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/xcontainer.c b/xcontainer.c
@@ -1681,8 +1681,7 @@ tabfocus(struct Tab *tab, int gotodesk)
XSetInputFocus(dpy, tab->obj.win, RevertToParent, CurrentTime);
}
ewmhsetactivewindow(tab->obj.win);
- if (tab->isurgent)
- tabclearurgency(tab);
+ tabclearurgency(tab);
containeraddfocus(c);
containerdecorate(c, NULL, NULL, 1, 0);
c->isminimized = 0;
@@ -1750,10 +1749,10 @@ tabupdateurgency(struct Tab *t, int isurgent)
int prev;
prev = t->isurgent;
- t->isurgent = isurgent;
- if (t->isurgent && t->row->col->c == wm.focused && t == t->row->seltab) {
- tabclearurgency(t);
- }
+ if (t == wm.focused->selcol->selrow->seltab)
+ t->isurgent = False;
+ else
+ t->isurgent = isurgent;
if (prev != t->isurgent) {
tabdecorate(t, 0);
}