X-Git-Url: https://jasonwoof.com/gitweb/?p=st.git;a=blobdiff_plain;f=st.c;h=d5a8257bbcd34b21e6912a63e9f75fde5b0886a4;hp=fb206a3354466a7caf03947067083a8577c04445;hb=a48f2be7f537cb1655c6b550d9346a17459a94bd;hpb=17fa1493ee0d8c53c63b3c8d1325ee38fd3192e1 diff --git a/st.c b/st.c index fb206a3..d5a8257 100644 --- 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); }