summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
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 4f345ee..8f4fa75 100644
--- a/dwm.c
+++ b/dwm.c
@@ -870,7 +870,8 @@ getatomprop(Client *c, Atom prop)
870 870
871 if (XGetWindowProperty(dpy, c->win, prop, 0L, sizeof atom, False, XA_ATOM, 871 if (XGetWindowProperty(dpy, c->win, prop, 0L, sizeof atom, False, XA_ATOM,
872 &da, &di, &dl, &dl, &p) == Success && p) { 872 &da, &di, &dl, &dl, &p) == Success && p) {
873 atom = *(Atom *)p; 873 if (dl > 0)
874 atom = *(Atom *)p;
874 XFree(p); 875 XFree(p);
875 } 876 }
876 return atom; 877 return atom;