commit a9765a8c33346b6d23198817944d00312dea455d
parent 8e755f867cd13fec9a01e3113783ffbcc3e82b70
Author: Markus Hanetzok <markus@hanetzok.net>
Date: Tue, 20 Jan 2026 15:44:26 +0100
Merge branch 'master' of git://git.suckless.org/dwm
Diffstat:
3 files changed, 7 insertions(+), 14 deletions(-)
diff --git a/LICENSE b/LICENSE
@@ -1,5 +1,6 @@
MIT/X Consortium License
+© 2010-2026 Hiltjo Posthuma <hiltjo@codemadness.org>
© 2006-2019 Anselm R Garbe <anselm@garbe.ca>
© 2006-2009 Jukka Salmi <jukka at salmi dot ch>
© 2006-2007 Sander van Dijk <a dot h dot vandijk at gmail dot com>
@@ -11,7 +12,6 @@ MIT/X Consortium License
© 2008 Martin Hurton <martin dot hurton at gmail dot com>
© 2008 Neale Pickett <neale dot woozle dot org>
© 2009 Mate Nagy <mnagy at port70 dot net>
-© 2010-2016 Hiltjo Posthuma <hiltjo@codemadness.org>
© 2010-2012 Connor Lane Smith <cls@lubutu.com>
© 2011 Christoph Lohmann <20h@r-36.net>
© 2015-2016 Quentin Rameau <quinq@fifth.space>
diff --git a/config.mk b/config.mk
@@ -1,5 +1,5 @@
# dwm version
-VERSION = 6.6
+VERSION = 6.7
# Customize below to fit your system
diff --git a/dwm.c b/dwm.c
@@ -1089,21 +1089,14 @@ Atom
getatomprop(Client *c, Atom prop)
{
int di;
- unsigned long dl;
+ unsigned long nitems, dl;
unsigned char *p = NULL;
Atom da, atom = None;
- /* FIXME getatomprop should return the number of items and a pointer to
- * the stored data instead of this workaround */
- Atom req = XA_ATOM;
- if (prop == xatom[XembedInfo])
- req = xatom[XembedInfo];
-
- if (XGetWindowProperty(dpy, c->win, prop, 0L, sizeof atom, False, req,
- &da, &di, &dl, &dl, &p) == Success && p) {
- atom = *(Atom *)p;
- if (da == xatom[XembedInfo] && dl == 2)
- atom = ((Atom *)p)[1];
+ if (XGetWindowProperty(dpy, c->win, prop, 0L, sizeof atom, False, XA_ATOM,
+ &da, &di, &nitems, &dl, &p) == Success && p) {
+ if (nitems > 0)
+ atom = *(Atom *)p;
XFree(p);
}
return atom;