summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--client.c2
-rw-r--r--cwmrc.510
2 files changed, 8 insertions, 4 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);
 
diff --git a/cwmrc.5 b/cwmrc.5
index d46dc7f..389083e 100644
--- a/cwmrc.5
+++ b/cwmrc.5
@@ -324,11 +324,13 @@ Vertically maximize current window (gap + border honored).
 .It window-hmaximize
 Horizontally maximize current window (gap + border honored).
 .It window-htile
-Current window is placed at the top of the screen and maximized
-horizontally, other windows in its group share remaining screen space.
+Current window is placed at the top of the screen, maximized
+horizontally and resized to half of the vertical screen space. Other
+windows in its group share remaining screen space.
 .It window-vtile
-Current window is placed on the left of the screen and maximized
-vertically, other windows in its group share remaining screen space.
+Current window is placed on the left of the screen, maximized vertically
+and resized to half of the horizontal screen space. Other windows in its
+group share remaining screen space.
 .It window-move
 Move current window.
 .It window-resize