diff --git a/src/dwm.c b/src/dwm.c index 55539f4..e56244a 100644 --- a/src/dwm.c +++ b/src/dwm.c @@ -1841,7 +1841,7 @@ setgaps(const Arg *arg) void togglegaps(const Arg *arg) { - if ((selmon->gappx == 0) || (selmon->gappx == gappx2)) + if (selmon->gappx == gappx2) selmon->gappx = gappx; else selmon->gappx = gappx2;