mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
zoomswap: renamed prevtiled back to findbefore as per original patch
This commit is contained in:
parent
ed7a43edf1
commit
12527f00d9
4
dwm.c
4
dwm.c
@ -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 */
|
||||||
|
@ -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;
|
||||||
|
@ -1 +1 @@
|
|||||||
static Client *prevtiled(Client *c);
|
static Client *findbefore(Client *c);
|
Loading…
Reference in New Issue
Block a user