summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-08-04 13:40:09 +0200
committerbakkeby <[email protected]>2020-08-04 13:40:09 +0200
commit12527f00d96d92718bcf996d3ed4d0c325b8c622 (patch)
tree9e0bf86c2a1a5781998493852ef42d8ad0d63380
parented7a43edf1f682e99d4d9d1796e104b69fb81e1e (diff)
downloaddwm-flexipatch-12527f00d96d92718bcf996d3ed4d0c325b8c622.tar.gz
dwm-flexipatch-12527f00d96d92718bcf996d3ed4d0c325b8c622.zip
zoomswap: renamed prevtiled back to findbefore as per original patch
-rw-r--r--dwm.c4
-rw-r--r--patch/zoomswap.c2
-rw-r--r--patch/zoomswap.h2
3 files changed, 4 insertions, 4 deletions
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