aboutsummaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2026-01-10 22:42:09 +0800
committerXiao Pan <xyz@flylightning.xyz>2026-01-10 22:42:09 +0800
commitf9b8ad8e308b39ed836f5a66dd1a18b8405eca3d (patch)
tree220f867caca462df12e5464a17b79c6f53118bda /dwm.c
parent0a3e97592b55c9ace6378339676ae8a3ae184d94 (diff)
parent85fe518c1af5eb43f222f4d8579e4814ed769f3b (diff)
Merge branch 'master' into fly
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index 1ec34f0..1c3140e 100644
--- a/dwm.c
+++ b/dwm.c
@@ -871,7 +871,8 @@ getatomprop(Client *c, Atom prop)
if (XGetWindowProperty(dpy, c->win, prop, 0L, sizeof atom, False, XA_ATOM,
&da, &di, &dl, &dl, &p) == Success && p) {
- atom = *(Atom *)p;
+ if (dl > 0)
+ atom = *(Atom *)p;
XFree(p);
}
return atom;