diff --git a/dwm.c b/dwm.c index 0f8e05b..d745ee1 100644 --- a/dwm.c +++ b/dwm.c @@ -3886,7 +3886,7 @@ zoom(const Arg *arg) #else p = prevzoom; #endif // PERTAG_PATCH - at = prevtiled(p); + at = findbefore(p); if (at) cprevious = nexttiled(at->next); if (!cprevious || cprevious != p) { @@ -3911,7 +3911,7 @@ zoom(const Arg *arg) cold = nexttiled(selmon->clients); if (c != cold && !at) - at = prevtiled(c); + at = findbefore(c); detach(c); attach(c); /* swap windows instead of pushing the previous one down */ diff --git a/patch/zoomswap.c b/patch/zoomswap.c index b7d0fa1..d7f57c4 100644 --- a/patch/zoomswap.c +++ b/patch/zoomswap.c @@ -4,7 +4,7 @@ static Client *prevzoom = NULL; #endif // PERTAG_PATCH Client * -prevtiled(Client *c) { +findbefore(Client *c) { Client *p; if (!c || c == c->mon->clients) return NULL; diff --git a/patch/zoomswap.h b/patch/zoomswap.h index 31633b5..21cc848 100644 --- a/patch/zoomswap.h +++ b/patch/zoomswap.h @@ -1 +1 @@ -static Client *prevtiled(Client *c); \ No newline at end of file +static Client *findbefore(Client *c); \ No newline at end of file