mirror of
https://git.suckless.org/dwm
synced 2026-06-07 20:05:48 +02:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f63cde9354 | ||
|
|
a9aa0d8ffb |
@@ -1,5 +1,5 @@
|
||||
# dwm version
|
||||
VERSION = 6.7
|
||||
VERSION = 6.8
|
||||
|
||||
# Customize below to fit your system
|
||||
|
||||
|
||||
6
dwm.c
6
dwm.c
@@ -864,13 +864,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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user