JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
next release will be 2.2
[dwm.git] / view.c
diff --git a/view.c b/view.c
index daf0711..0c9ea6f 100644 (file)
--- a/view.c
+++ b/view.c
@@ -44,6 +44,9 @@ reorder(void) {
 static void
 togglemax(Client *c) {
        XEvent ev;
+               
+       if(c->isfixed)
+               return;
 
        if((c->ismax = !c->ismax)) {
                c->rx = c->x; c->x = sx;
@@ -192,25 +195,14 @@ isvisible(Client *c) {
 }
 
 void
-resizecol(Arg *arg) {
-       unsigned int n;
-       Client *c;
-
-       for(n = 0, c = clients; c; c = c->next)
-               if(isvisible(c) && !c->isfloat)
-                       n++;
-       if(!sel || sel->isfloat || n < 2 || (arrange == dofloat))
-               return;
-       if(sel == getnext(clients)) {
+resizemaster(Arg *arg) {
+       if(arg->i == 0)
+               master = MASTER;
+       else {
                if(master + arg->i > 950 || master + arg->i < 50)
                        return;
                master += arg->i;
        }
-       else {
-               if(master - arg->i > 950 || master - arg->i < 50)
-                       return;
-               master -= arg->i;
-       }
        arrange();
 }