aboutsummaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
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;