aboutsummaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorMarcel Screm <marcel@marcelscrem.com>2026-01-10 22:35:13 +0100
committerMarcel Screm <marcel@marcelscrem.com>2026-01-10 22:35:13 +0100
commitaf31fc9683f28bfbaca539f87f43f253487a00ba (patch)
tree3d6e53a30d83e9edaf880b913c85788408681a3c /dwm.c
parent57d6a1e9a9b00d427e9c919d906f61352be22ee6 (diff)
parent85fe518c1af5eb43f222f4d8579e4814ed769f3b (diff)
Merge branch 'master' of https://git.suckless.org/dwmHEADmaster
dwm 6.7
Diffstat (limited to 'dwm.c')
-rwxr-xr-xdwm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index 8cad103..4512b41 100755
--- a/dwm.c
+++ b/dwm.c
@@ -891,7 +891,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;