diff options
| author | Xiao Pan <xyz@flylightning.xyz> | 2026-01-17 09:16:13 +0800 |
|---|---|---|
| committer | Xiao Pan <xyz@flylightning.xyz> | 2026-01-17 09:16:13 +0800 |
| commit | 4891c001fb8c70bb94203503d8418c49aa1dbfd5 (patch) | |
| tree | d8220e0596c4faade25b27214e8f243d5c062689 /dwm.c | |
| parent | f9b8ad8e308b39ed836f5a66dd1a18b8405eca3d (diff) | |
| parent | a9aa0d8ffbb548b0b1f9f755557aef2482c0f820 (diff) | |
Merge branch 'master' into flyfly
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -865,13 +865,13 @@ Atom getatomprop(Client *c, Atom prop) { int di; - unsigned long dl; + unsigned long nitems, dl; unsigned char *p = NULL; Atom da, atom = None; if (XGetWindowProperty(dpy, c->win, prop, 0L, sizeof atom, False, XA_ATOM, - &da, &di, &dl, &dl, &p) == Success && p) { - if (dl > 0) + &da, &di, &nitems, &dl, &p) == Success && p) { + if (nitems > 0) atom = *(Atom *)p; XFree(p); } |
