---
dwm.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dwm.c b/dwm.c
index a5e1ce9..63727d2 100644
--- a/dwm.c
+++ b/dwm.c
_AT_@ -863,14 +863,14 @@ focusstack(const Arg *arg)
Atom
getatomprop(Client *c, Atom prop)
{
- int di;
+ int format;
unsigned long nitems, dl;
unsigned char *p = NULL;
Atom da, atom = None;
if (XGetWindowProperty(dpy, c->win, prop, 0L, sizeof atom, False, XA_ATOM,
- &da, &di, &nitems, &dl, &p) == Success && p) {
- if (nitems > 0)
+ &da, &format, &nitems, &dl, &p) == Success && p) {
+ if (nitems > 0 && format == 32)
atom = *(Atom *)p;
XFree(p);
}
--
2.52.0
Received on Tue Feb 17 2026 - 06:04:47 CET
This archive was generated by hypermail 2.3.0 : Tue Feb 17 2026 - 06:12:31 CET