setmfact should not have any effect if in floating layout
authorAnselm R Garbe <garbeam@gmail.com>
Mon, 24 Mar 2008 14:31:02 +0000 (14:31 +0000)
committerAnselm R Garbe <garbeam@gmail.com>
Mon, 24 Mar 2008 14:31:02 +0000 (14:31 +0000)
dwm.c

diff --git a/dwm.c b/dwm.c
index ed7fc0d..212bf3e 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -1467,7 +1467,7 @@ void
 setmfact(const char *arg) {
        double delta;
 
-       if(!arg)
+       if(!arg || lt->isfloating)
                return;
        delta = strtod(arg, NULL);
        if(arg[0] == '-' || arg[0] == '+') {