summaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
authorarg@mig29 <unknown>2006-11-03 08:29:39 +0100
committerarg@mig29 <unknown>2006-11-03 08:29:39 +0100
commitf78c16f8c6134262da3f07cd7c8c33ca6d62a261 (patch)
tree2235ca3fe4b34dd88fc78b98a91764db91dc38df /view.c
parent0c5f47e720d2c1fa5b3f2672ec03d0f267e62c90 (diff)
applied Jukkas patch
Diffstat (limited to 'view.c')
-rw-r--r--view.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/view.c b/view.c
index abd8ca6..0c9ea6f 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();
}