X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/c7ae6334b7f0e8ac1fbc4da977fef4b92792767b..4633fbec616d2f130dfd5d8677e103cf47d26c15:/view.c diff --git a/view.c b/view.c index f1be609..4c656f3 100644 --- a/view.c +++ b/view.c @@ -172,7 +172,9 @@ focusprev(Arg *arg) void growcol(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)