zoomswap: renamed prevtiled back to findbefore as per original patch

This commit is contained in:
bakkeby 2020-08-04 13:40:09 +02:00
parent ed7a43edf1
commit 12527f00d9
3 changed files with 4 additions and 4 deletions

4
dwm.c
View File

@ -3886,7 +3886,7 @@ zoom(const Arg *arg)
#else #else
p = prevzoom; p = prevzoom;
#endif // PERTAG_PATCH #endif // PERTAG_PATCH
at = prevtiled(p); at = findbefore(p);
if (at) if (at)
cprevious = nexttiled(at->next); cprevious = nexttiled(at->next);
if (!cprevious || cprevious != p) { if (!cprevious || cprevious != p) {
@ -3911,7 +3911,7 @@ zoom(const Arg *arg)
cold = nexttiled(selmon->clients); cold = nexttiled(selmon->clients);
if (c != cold && !at) if (c != cold && !at)
at = prevtiled(c); at = findbefore(c);
detach(c); detach(c);
attach(c); attach(c);
/* swap windows instead of pushing the previous one down */ /* swap windows instead of pushing the previous one down */

View File

@ -4,7 +4,7 @@ static Client *prevzoom = NULL;
#endif // PERTAG_PATCH #endif // PERTAG_PATCH
Client * Client *
prevtiled(Client *c) { findbefore(Client *c) {
Client *p; Client *p;
if (!c || c == c->mon->clients) if (!c || c == c->mon->clients)
return NULL; return NULL;

View File

@ -1 +1 @@
static Client *prevtiled(Client *c); static Client *findbefore(Client *c);