X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/7225c99903c1a7ada44d575251e3aca64625a172..dddd58a8cdc9ffd9f207c45316e9f9a28b4bf519:/view.c?ds=inline diff --git a/view.c b/view.c index a3b2029..7c56ac2 100644 --- a/view.c +++ b/view.c @@ -194,7 +194,7 @@ dotile(Arg *arg) { break; case StackBottom: c->x = sx; - c->y = sy + master; + c->y = sy + master + bh; break; case StackRight: c->x = sx + master; @@ -340,13 +340,8 @@ togglestackpos(Arg *arg) { stackpos = STACKPOS; else stackpos = StackBottom; - updatemaster(); - arrange(NULL); -} - -void -updatemaster(void) { master = ((stackpos == StackBottom ? sh - bh : sw) * MASTER) / 100; + arrange(NULL); } void