X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=view.c;h=4b4c9eb7ae5d7842f9057f9fcc425037b5d72005;hb=3a1343a2458aa53d50019f24a32a3ab9bb8b3a83;hp=ac3d495db6ff68c929cfaee82005c0dec81051de;hpb=04f27a54380cbd2bb24d8a86b672af34bb38d2fa;p=dwm.git diff --git a/view.c b/view.c index ac3d495..4b4c9eb 100644 --- a/view.c +++ b/view.c @@ -181,6 +181,26 @@ isvisible(Client *c) } void +resizecol(Arg *arg) +{ + Client *c = getnext(clients); + + if(!sel || !getnext(c->next) || (arrange != dotile)) + return; + if(sel == getnext(clients)) { + if(mw + arg->i > sw - 100) + return; + mw += arg->i; + } + else { + if(mw - arg->i < 100) + return; + mw -= arg->i; + } + arrange(NULL); +} + +void restack() { static unsigned int nwins = 0;