[dev] [st PATCH 2/6] Use MODBIT in xseturgency.

From: noname <noname_AT_inventati.org>
Date: Sun, 27 Apr 2014 15:39:39 +0400

---
 st.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/st.c b/st.c
index 41a3e3c..afede52 100644
--- a/st.c
+++ b/st.c
_AT_@ -3520,7 +3520,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);
 }
-- 
1.8.4
Received on Sun Apr 27 2014 - 13:39:39 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 27 2014 - 13:48:12 CEST