From 33fad48fcee9f95414e3405d3f05168519326c24 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Sun, 21 Feb 2021 21:31:41 +0100 Subject: [PATCH] Refactor --- src/dwm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); }