mirror of
https://github.com/alrayyes/st.git
synced 2024-11-22 19:26:22 +00:00
Use MODBIT in xseturgency.
This commit is contained in:
parent
17fa1493ee
commit
a48f2be7f5
1 changed files with 1 additions and 1 deletions
2
st.c
2
st.c
|
@ -3570,7 +3570,7 @@ void
|
||||||
xseturgency(int add) {
|
xseturgency(int add) {
|
||||||
XWMHints *h = XGetWMHints(xw.dpy, xw.win);
|
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);
|
XSetWMHints(xw.dpy, xw.win, h);
|
||||||
XFree(h);
|
XFree(h);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue