diff --git a/src/dwm.c b/src/dwm.c index e56244a..383160c 100644 --- a/src/dwm.c +++ b/src/dwm.c @@ -230,6 +230,7 @@ static void setfocus(Client *c); static void setfullscreen(Client *c, int fullscreen); static void setgaps(const Arg *arg); static void togglegaps(const Arg *arg); +static void switchgaps(const unsigned int i); static void setlayout(const Arg *arg); static void setlayoutsafe(const Arg *arg); static void setmfact(const Arg *arg); @@ -696,6 +697,7 @@ createmon(void) m->showbar = showbar; m->topbar = topbar; m->gappx = gappx; + m->gapidx = 0; m->lt[0] = &layouts[0]; m->lt[1] = &layouts[1 % LENGTH(layouts)]; strncpy(m->ltsymbol, layouts[0].symbol, sizeof m->ltsymbol); @@ -1848,6 +1850,12 @@ togglegaps(const Arg *arg) arrange(selmon); } +void +switchgaps(const unsigned int i) +{ + +} + void setlayout(const Arg *arg) {