summary refs log tree commit diff
path: root/client.c
diff options
context:
space:
mode:
authorokan <okan>2017-04-24 12:18:04 +0000
committerokan <okan>2017-04-24 12:18:04 +0000
commit50dd70afc5f37b724ce0f68dd6755faffbb994df (patch)
tree5049e7ffcc4951261c3b1b679a8ea9c19bc68c9e /client.c
parent8d9d84d8592fb03c7a6cf7f68f61b1e84c3ac596 (diff)
downloadcwm-50dd70afc5f37b724ce0f68dd6755faffbb994df.tar.gz
cwm-50dd70afc5f37b724ce0f68dd6755faffbb994df.tar.xz
cwm-50dd70afc5f37b724ce0f68dd6755faffbb994df.zip
For {h,v}tile, instead of keeping the master client's {h,v} geometry, expand it
to %50 of the area, then fill in the remaining space with the other clients in
the same group; from Gerrit Meyerheim.

support from ajacoutot.
Diffstat (limited to 'client.c')
-rw-r--r--client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/client.c b/client.c
index 9917a4e..bf9a823 100644
--- a/client.c
+++ b/client.c
@@ -982,6 +982,7 @@ client_htile(struct client_ctx *cc)
 	cc->flags &= ~CLIENT_HMAXIMIZED;
 	cc->geom.x = area.x;
 	cc->geom.y = area.y;
+	cc->geom.h = (area.h - (cc->bwidth * 2)) / 2;
 	cc->geom.w = area.w - (cc->bwidth * 2);
 	client_resize(cc, 1);
 	client_ptrwarp(cc);
@@ -1042,6 +1043,7 @@ client_vtile(struct client_ctx *cc)
 	cc->geom.x = area.x;
 	cc->geom.y = area.y;
 	cc->geom.h = area.h - (cc->bwidth * 2);
+	cc->geom.w = (area.w - (cc->bwidth * 2)) / 2;
 	client_resize(cc, 1);
 	client_ptrwarp(cc);