X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=view.c;h=abd8ca6cd0ad5a309517f340aaedcfcbb75cce89;hb=4b5b3d90af58f860569178e554604717ef51152d;hp=facbb4cbbf7094fae81274ec3aa6f00383a7df59;hpb=2b13e7466f4912e3778bf59e6aec3065443f08fe;p=dwm.git diff --git a/view.c b/view.c index facbb4c..abd8ca6 100644 --- a/view.c +++ b/view.c @@ -45,8 +45,7 @@ static void togglemax(Client *c) { XEvent ev; - if (x->maxw && x->minw && x->maxh && x->minh && - x->maxw == x->minw && x->maxh == x->minh) + if(c->isfixed) return; if((c->ismax = !c->ismax)) { @@ -196,25 +195,10 @@ isvisible(Client *c) { } void -resizecol(Arg *arg) { - unsigned int n; - Client *c; - - for(n = 0, c = clients; c; c = c->next) - if(isvisible(c) && !c->isfloat) - n++; - if(!sel || sel->isfloat || n < 2 || (arrange == dofloat)) +resizemaster(Arg *arg) { + if(master + arg->i > 950 || master + arg->i < 50) return; - if(sel == getnext(clients)) { - if(master + arg->i > 950 || master + arg->i < 50) - return; - master += arg->i; - } - else { - if(master - arg->i > 950 || master - arg->i < 50) - return; - master -= arg->i; - } + master += arg->i; arrange(); }