aboutsummaryrefslogtreecommitdiff
path: root/patches/dwm-fullgaps-6.4-resetgaps.diff
diff options
context:
space:
mode:
Diffstat (limited to 'patches/dwm-fullgaps-6.4-resetgaps.diff')
-rw-r--r--patches/dwm-fullgaps-6.4-resetgaps.diff28
1 files changed, 28 insertions, 0 deletions
diff --git a/patches/dwm-fullgaps-6.4-resetgaps.diff b/patches/dwm-fullgaps-6.4-resetgaps.diff
new file mode 100644
index 0000000..93e7443
--- /dev/null
+++ b/patches/dwm-fullgaps-6.4-resetgaps.diff
@@ -0,0 +1,28 @@
+*** dwm.c 2023-11-24 00:59:18.482039176 -0500
+--- dwm2.c 2023-11-24 01:00:11.708584155 -0500
+*************** static void setclientstate(Client *c, lo
+*** 218,223 ****
+--- 218,224 ----
+ static void setfocus(Client *c);
+ static void setfullscreen(Client *c, int fullscreen);
+ static void setgaps(const Arg *arg);
++ static void resetgaps(const Arg *arg);
+ static void setlayout(const Arg *arg);
+ static void setmfact(const Arg *arg);
+ static void setup(void);
+*************** setgaps(const Arg *arg)
+*** 1541,1546 ****
+--- 1542,1554 ----
+ arrange(selmon);
+ }
+
++ void
++ resetgaps(const Arg *arg)
++ {
++ selmon->gappx = gappx;
++ arrange(selmon);
++ }
++
+ void
+ setlayout(const Arg *arg)
+ {