X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/c7ae6334b7f0e8ac1fbc4da977fef4b92792767b..40bd21ce631073e7badd3d9617c273f44711c059:/view.c diff --git a/view.c b/view.c index f1be609..09ee497 100644 --- a/view.c +++ b/view.c @@ -169,10 +169,23 @@ focusprev(Arg *arg) } } +Bool +isvisible(Client *c) +{ + unsigned int i; + + for(i = 0; i < ntags; i++) + if(c->tags[i] && seltag[i]) + return True; + return False; +} + void -growcol(Arg *arg) +resizetile(Arg *arg) { - if(!sel || !clients || !clients->next || (arrange != dotile)) + Client *c = getnext(clients); + + if(!sel || !getnext(c->next) || (arrange != dotile)) return; if(sel == getnext(clients)) { if(mw + arg->i > sw - 100) @@ -187,17 +200,6 @@ growcol(Arg *arg) arrange(NULL); } -Bool -isvisible(Client *c) -{ - unsigned int i; - - for(i = 0; i < ntags; i++) - if(c->tags[i] && seltag[i]) - return True; - return False; -} - void restack() {