JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
right, multihead issue is not involved with growcol
[dwm.git] / view.c
diff --git a/view.c b/view.c
index ac3d495..4c656f3 100644 (file)
--- a/view.c
+++ b/view.c
@@ -169,6 +169,26 @@ focusprev(Arg *arg)
        }
 }
 
+void
+growcol(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);
+}
+
 Bool
 isvisible(Client *c)
 {