aboutsummaryrefslogtreecommitdiff
path: root/patches/dwm-fullgaps-6.4-resetgaps.diff
blob: 93e74439918689375a6f9fc205f4c6ee7ef83abb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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)
  {