summary refs log tree commit diff
path: root/client.c
diff options
context:
space:
mode:
authorokan <okan>2016-09-14 21:00:24 +0000
committerokan <okan>2016-09-14 21:00:24 +0000
commit2bbe111cc0e2ddd8b684e22dab337086c39ac46a (patch)
treea55f4c5ec40975ab3254313a5c6f242994137ee5 /client.c
parentb8933ebccaba603c47d15026ed22a2afabbd9d67 (diff)
downloadcwm-2bbe111cc0e2ddd8b684e22dab337086c39ac46a.tar.gz
cwm-2bbe111cc0e2ddd8b684e22dab337086c39ac46a.tar.xz
cwm-2bbe111cc0e2ddd8b684e22dab337086c39ac46a.zip
Some clients fail to setup hints at all, so initalize for them; fallout
from r1.218 switching to malloc - clearly missed this case.

found the hard way by brynet@
Diffstat (limited to 'client.c')
-rw-r--r--client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/client.c b/client.c
index b730c78..5c2148b 100644
--- a/client.c
+++ b/client.c
@@ -78,6 +78,7 @@ client_init(Window win, struct screen_ctx *sc)
 	cc->flags = 0;
 	cc->stackingorder = 0;
 	memset(&cc->hint, 0, sizeof(cc->hint));
+	memset(&cc->ch, 0, sizeof(cc->ch));
 	cc->ptr.x = -1;
 	cc->ptr.y = -1;