Xinqi Bao's Git

right, multihead issue is not involved with growcol
[dwm.git] / view.c
diff --git a/view.c b/view.c
index dc10e5e..4c656f3 100644 (file)
--- a/view.c
+++ b/view.c
@@ -172,7 +172,9 @@ focusprev(Arg *arg)
 void
 growcol(Arg *arg)
 {
-       if(!sel || (arrange != dotile))
+       Client *c = getnext(clients);
+
+       if(!sel || !getnext(c->next) || (arrange != dotile))
                return;
        if(sel == getnext(clients)) {
                if(mw + arg->i > sw - 100)