about summary refs log tree commit diff stats
diff options
context:
space:
mode:
author2014-06-21 07:46:26 +0200
committer2014-08-04 23:10:39 +0200
commitb4fed5a100f2fe50cb7caa33e6d58edebe1e7f80 (patch)
tree61cd37181d408520c393fdc0e781ed4e62483615
parent9d1d6d9409df1a7045806c1e802d89d08b0ae0a7 (diff)
downloadtabbed-b4fed5a100f2fe50cb7caa33e6d58edebe1e7f80.tar.gz
-rw-r--r--tabbed.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tabbed.c b/tabbed.c
index ba22f9a..6a2264f 100644
--- a/tabbed.c
+++ b/tabbed.c
@@ -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();