aboutsummaryrefslogtreecommitdiff
path: root/gaplessgrid.c
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-07-25 23:41:08 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-07-25 23:41:08 +0100
commit67df7a09ed3eb39cb22fb39b70f1691f9d67b23d (patch)
treedf99f10370da1c03e510451b905a2678d5c7698a /gaplessgrid.c
parent5f9fcc88d1578fe47b7e6e7a3166b8e8b0f0c9e9 (diff)
downloaddwm-67df7a09ed3eb39cb22fb39b70f1691f9d67b23d.tar.gz
dwm-67df7a09ed3eb39cb22fb39b70f1691f9d67b23d.tar.bz2
dwm-67df7a09ed3eb39cb22fb39b70f1691f9d67b23d.zip
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.
Diffstat (limited to 'gaplessgrid.c')
-rw-r--r--gaplessgrid.c2
1 files changed, 1 insertions, 1 deletions
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 */