> With all that in mind, what do you think about the attached patch
> (on top of the last)? It also does the bounds handling in tweak()
> more constructively.

And yet another fix on top of that, sorry. I hope to get into hg
some day to avoid this patch mess, but so far I only speak git...

Regards,
Peter
diff --git a/dwm.c b/dwm.c
index 3f34965..a6e051f 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1482,12 +1482,12 @@ toggleview(const Arg *arg) {
 
 void
 tweak(int *ip, int i, int min, int max) {
-       if(!lt[sellt]->arrange)
-               return;
        if(i < min)
                i = min;
        else if(i > max)
                i = max;
+       if(!lt[sellt]->arrange || *ip == i)
+               return;
        *ip = i;
        arrange();
 }

Reply via email to