aboutsummaryrefslogtreecommitdiff
path: root/vanitygaps.c
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-01-22 07:29:02 -0800
committerFuwn <[email protected]>2024-01-22 07:29:02 -0800
commita050a87a1aee33beb714612f18c242c08f020f2b (patch)
tree6a0990c9b4d30495253d5edff4f64e0ca0261b64 /vanitygaps.c
parentformat(vanitygaps): style (diff)
downloadseiwm-a050a87a1aee33beb714612f18c242c08f020f2b.tar.xz
seiwm-a050a87a1aee33beb714612f18c242c08f020f2b.zip
feat(sei.c): reactive togglebar
`togglefullscr` is no longer naive to `togglebar`'s next state and `keys`' function. When toggling the bar visibility using the dedicated keybind in `keys`, a lock will be placed on the bar's visibility state which will disallow `togglefullscr` from mutating it. This is different from the previous behaviour where `togglefullscr` would toggle the bar's visibility regardless of the present state. When a lock is not held by a previous manual visibility toggle initiated by user, the bar's visibility will reflect `togglefullscr`'s next state.
Diffstat (limited to 'vanitygaps.c')
-rw-r--r--vanitygaps.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vanitygaps.c b/vanitygaps.c
index 8046d82..296d6a1 100644
--- a/vanitygaps.c
+++ b/vanitygaps.c
@@ -27,6 +27,8 @@ static void setgaps(int oh, int ov, int ih, int iv);
/* Settings */
static int enablegaps = 1;
+static const vertpad_original = vertpad;
+static const sidepad_original = sidepad;
static void setgaps(int oh, int ov, int ih, int iv) {
if (oh < 0)