diff options
author | okan | 2017-04-24 12:18:04 +0000 |
---|---|---|
committer | okan | 2017-04-24 12:18:04 +0000 |
commit | c64bea1dcfb38161bc6cd963a9bc0ea3c091b5d5 (patch) | |
tree | 4b08cf0a3660d9cdacfe621193c25eb8d0432dce /client.c | |
parent | 53d39c6c470cbeca66f7ed24c6db3722d586030a (diff) | |
download | cwm-c64bea1dcfb38161bc6cd963a9bc0ea3c091b5d5.tar.gz |
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 '')
-rw-r--r-- | client.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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.234 2017/02/06 18:10:28 okan Exp $ + * $OpenBSD: client.c,v 1.235 2017/04/24 12:18:04 okan Exp $ */ #include <sys/types.h> @@ -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); |