diff options
| -rw-r--r-- | dwm.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -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; |
