JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Use MODBIT in xseturgency.
[st.git] / 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);
 }