From f78c16f8c6134262da3f07cd7c8c33ca6d62a261 Mon Sep 17 00:00:00 2001 From: arg@mig29 Date: Fri, 3 Nov 2006 08:29:39 +0100 Subject: applied Jukkas patch --- view.c | 10 +++++++--- 1 file 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(); } -- cgit v1.2.3