summary refs log tree commit diff
path: root/client.c
diff options
context:
space:
mode:
authorokan <okan>2017-02-06 18:10:28 +0000
committerokan <okan>2017-02-06 18:10:28 +0000
commit172da14d77718199a262fe0ae593d6a5862714da (patch)
tree8af9c3003993255e7551178762744d7ac9434ec7 /client.c
parentf908118a3a013ad3a1f4717ec036bf2fa8b5582e (diff)
downloadcwm-172da14d77718199a262fe0ae593d6a5862714da.tar.gz
cwm-172da14d77718199a262fe0ae593d6a5862714da.tar.xz
cwm-172da14d77718199a262fe0ae593d6a5862714da.zip
Call client_resize instead of client_move after client_placecalc since the size
may also change.

from Vadim Vygonets
Diffstat (limited to 'client.c')
-rw-r--r--client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.c b/client.c
index 6cb222a..9917a4e 100644
--- a/client.c
+++ b/client.c
@@ -100,7 +100,7 @@ client_init(Window win, struct screen_ctx *sc, int active)
 
 	if (wattr.map_state != IsViewable) {
 		client_placecalc(cc);
-		client_move(cc);
+		client_resize(cc, 0);
 		if ((cc->wmh) && (cc->wmh->flags & StateHint))
 			client_set_wm_state(cc, cc->wmh->initial_state);
 	} else {