From 67df7a09ed3eb39cb22fb39b70f1691f9d67b23d Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 25 Jul 2024 23:41:08 +0100 Subject: Two arrays of gaps are stored in pertag, switchable by toggle_gaps With this commit, each tag has two gap values (indexes at `gaps_previous`, `gaps_current`) that can be interchanged via `toggle_gaps`. At initialisation, `gaps_previous` is set to `default_gaps` and `gaps_current` is set to all 0. --- gaplessgrid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gaplessgrid.c') diff --git a/gaplessgrid.c b/gaplessgrid.c index 3c9ad76..b0dd7d9 100644 --- a/gaplessgrid.c +++ b/gaplessgrid.c @@ -15,7 +15,7 @@ gaplessgrid(Monitor *m) { cols = 2; rows = n/cols; - const int gap_size = m->pertag->gaps[m->pertag->curtag]; + const int gap_size = m->pertag->gaps_current[m->pertag->curtag]; /* window geometries */ cw = cols ? m->ww / cols : m->ww; cn = 0; /* current column number */ -- cgit v1.2.3-13-gbd6f