summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--view.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/view.c b/view.c
index abd8ca6c..0c9ea6f0 100644
--- a/view.c
+++ b/view.c
@@ -196,9 +196,13 @@ isvisible(Client *c) {
void
resizemaster(Arg *arg) {
- if(master + arg->i > 950 || master + arg->i < 50)
- return;
- master += arg->i;
+ if(arg->i == 0)
+ master = MASTER;
+ else {
+ if(master + arg->i > 950 || master + arg->i < 50)
+ return;
+ master += arg->i;
+ }
arrange();
}