From 3c11f9a54df81af911634ca54a4e8325444130a2 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Thu, 15 Jul 2021 04:44:32 +0200 Subject: [PATCH] Fixed minor logic bug --- src/dwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;