X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=view.c;h=0c9ea6f0374c3edab6e26934ca266c1f5016c8e3;hb=f320cd203b13b277a33c76191db5626fa342b646;hp=85bfabf3c359d9b79cafa555684cbccf6cb56bdc;hpb=0f395c1b115280a0976a85940c714152d8a58dac;p=dwm.git diff --git a/view.c b/view.c index 85bfabf..0c9ea6f 100644 --- a/view.c +++ b/view.c @@ -195,25 +195,14 @@ 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)) - return; - if(sel == getnext(clients)) { +resizemaster(Arg *arg) { + if(arg->i == 0) + master = MASTER; + else { 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; - } arrange(); }