aboutsummaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorokan2012-07-04 18:00:13 +0000
committerokan2012-07-04 18:00:13 +0000
commit3babca0ab0d4ea5aa9c020db586c1cc73d331cda (patch)
treebbdb85521c9101f78f425e13ab35b6966a10b94c /client.c
parentddc2baea991a9aee4b138ed29436fe423d1c4d3e (diff)
downloadcwm-3babca0ab0d4ea5aa9c020db586c1cc73d331cda.tar.gz
fix missing atom (WM_PROTOCOLS) wrt new style handing; without this, the
window manager didn't know if a client supported CLIENT_PROTO_DELETE and thus used a hammer, XKillClient. behaviour reported by Tim van der Molen.
Diffstat (limited to 'client.c')
-rw-r--r--client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/client.c b/client.c
index 7dbe076..1aa46fe 100644
--- a/client.c
+++ b/client.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: client.c,v 1.95 2012/07/03 13:49:03 okan Exp $
+ * $OpenBSD: client.c,v 1.96 2012/07/04 18:00:13 okan Exp $
*/
#include <sys/param.h>
@@ -519,7 +519,7 @@ client_update(struct client_ctx *cc)
int i;
long n;
- if ((n = xu_getprop(cc->win, WM_PROTOCOLS,
+ if ((n = xu_getprop(cc->win, cwmh[WM_PROTOCOLS].atom,
XA_ATOM, 20L, (u_char **)&p)) <= 0)
return;