--- tabbed.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tabbed.c b/tabbed.c index ba22f9a..6a2264f 100644 --- a/tabbed.c +++ b/tabbed.c _AT_@ -452,16 +452,16 @@ focus(int c) { sendxembed(c, XEMBED_WINDOW_ACTIVATE, 0, 0, 0); xsettitle(win, clients[c]->name); - /* If sel is already c, change nothing. */ if(sel != c) { lastsel = sel; sel = c; - if(clients[c]->urgent && (wmh = XGetWMHints(dpy, clients[c]->win))) { - wmh->flags &= ~XUrgencyHint; - XSetWMHints(dpy, clients[c]->win, wmh); - clients[c]->urgent = False; - XFree(wmh); - } + } + + if(clients[c]->urgent && (wmh = XGetWMHints(dpy, clients[c]->win))) { + wmh->flags &= ~XUrgencyHint; + XSetWMHints(dpy, clients[c]->win, wmh); + clients[c]->urgent = False; + XFree(wmh); } drawbar(); -- 2.0.0 --mojUlQ0s9EVzWg2t--Received on Mon Sep 17 2001 - 00:00:00 CEST
This archive was generated by hypermail 2.3.0 : Sat Jun 21 2014 - 08:24:03 CEST