JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Use MODBIT in xseturgency.
authornoname <noname@inventati.org>
Sun, 27 Apr 2014 11:39:39 +0000 (15:39 +0400)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Mon, 28 Apr 2014 16:38:06 +0000 (18:38 +0200)
st.c

diff --git a/st.c b/st.c
index fb206a3..d5a8257 100644 (file)
--- a/st.c
+++ b/st.c
@@ -3570,7 +3570,7 @@ void
 xseturgency(int add) {
        XWMHints *h = XGetWMHints(xw.dpy, xw.win);
 
-       h->flags = add ? (h->flags | XUrgencyHint) : (h->flags & ~XUrgencyHint);
+       MODBIT(h->flags, add, XUrgencyHint);
        XSetWMHints(xw.dpy, xw.win, h);
        XFree(h);
 }