X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/a355782a7795c8c26a05e8bda1505ff46d5d0289..a520ba3c0baed704e0323494aa7f8a4a464912da:/dwm.c diff --git a/dwm.c b/dwm.c index d264e48..37e833e 100644 --- a/dwm.c +++ b/dwm.c @@ -330,7 +330,7 @@ buttonpress(XEvent *e) { x = bgw; for(i = 0; i < LENGTH(tags); i++) { x += textw(tags[i]); - if(ev->x > bgw && ev->x < x) { + if(ev->x >= bgw && ev->x < x) { if(ev->button == Button1) { if(ev->state & MODKEY) tag(tags[i]); @@ -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] == '+') { @@ -1480,7 +1480,7 @@ setmfact(const char *arg) { return; mfact = delta; } - arrange(); + setgeom(geom->symbol); } void