diff --git a/src/dwm.c b/src/dwm.c index e59c605..b6202b0 100644 --- a/src/dwm.c +++ b/src/dwm.c @@ -1691,11 +1691,10 @@ setgaps(const Arg *arg) void togglegaps(const Arg *arg) { - if(selmon->gappx == 0) { + if (selmon->gappx == 0) selmon->gappx = gappx; - } else { + else selmon->gappx = 0; - } arrange(selmon); }