diff options
author | Peter Hofmann <scm@uninformativ.de> | 2014-06-21 07:46:26 +0200 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2014-08-04 23:10:39 +0200 |
commit | b4fed5a100f2fe50cb7caa33e6d58edebe1e7f80 (patch) | |
tree | 61cd37181d408520c393fdc0e781ed4e62483615 /tabbed.c | |
parent | 9d1d6d9409df1a7045806c1e802d89d08b0ae0a7 (diff) |
Clear urgency hint on sel == c
- Run "tabbed xterm -into".
- Open a new tab using Ctrl+Shift+Enter, switch to it using Ctrl+Tab.
- Run "sleep 2; printf '\a'".
- Quickly change back to the first tab (c = 0) and wait for the second
one (c = 1) to get the urgency hint.
- Close the first tab using Ctrl+Q or Ctrl+D. This sets sel = 0 and c =
0, so focus() won't touch the urgency hint.
- Now, the urgency hint on the second tab has not been cleared. Open a
new tab to verify it.
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat (limited to 'tabbed.c')
-rw-r--r-- | tabbed.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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(); |