diff options
| author | bakkeby <[email protected]> | 2019-09-05 23:19:23 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2019-09-05 23:19:23 +0200 |
| commit | e681ab5dd99c5b0b8693846239976c3cb66fe502 (patch) | |
| tree | b653c8142dc2bdda1f8f03a734dcd5b1830cf44a /patch | |
| parent | 591caea975327d912b0650dd7cbbf66329c40585 (diff) | |
| download | dwm-flexipatch-e681ab5dd99c5b0b8693846239976c3cb66fe502.tar.gz dwm-flexipatch-e681ab5dd99c5b0b8693846239976c3cb66fe502.zip | |
Adding zoomswap patch (pertag compatible)
Diffstat (limited to 'patch')
| -rw-r--r-- | patch/include.c | 4 | ||||
| -rw-r--r-- | patch/include.h | 6 | ||||
| -rw-r--r-- | patch/pertag.c | 2 | ||||
| -rw-r--r-- | patch/zoomswap.c | 13 | ||||
| -rw-r--r-- | patch/zoomswap.h | 1 |
5 files changed, 25 insertions, 1 deletions
diff --git a/patch/include.c b/patch/include.c index 811fadd..d14c844 100644 --- a/patch/include.c +++ b/patch/include.c @@ -9,3 +9,7 @@ #if SYSTRAY_PATCH #include "systray.c" #endif + +#if ZOOMSWAP_PATCH +#include "zoomswap.c" +#endif // ZOOMSWAP_PATCH diff --git a/patch/include.h b/patch/include.h index 5605b77..52b0514 100644 --- a/patch/include.h +++ b/patch/include.h @@ -4,4 +4,8 @@ #if SYSTRAY_PATCH #include "systray.h" -#endif
\ No newline at end of file +#endif + +#if ZOOMSWAP_PATCH +#include "zoomswap.h" +#endif // ZOOMSWAP_PATCH
\ No newline at end of file diff --git a/patch/pertag.c b/patch/pertag.c index 818c7ab..967e46a 100644 --- a/patch/pertag.c +++ b/patch/pertag.c @@ -7,5 +7,7 @@ struct Pertag { #if PERTAGBAR_PATCH Bool showbars[LENGTH(tags) + 1]; /* display bar for the current tag */ #endif // PERTAGBAR_PATCH + #if ZOOMSWAP_PATCH Client *prevzooms[LENGTH(tags) + 1]; /* store zoom information */ + #endif // ZOOMSWAP_PATCH };
\ No newline at end of file diff --git a/patch/zoomswap.c b/patch/zoomswap.c new file mode 100644 index 0000000..b7d0fa1 --- /dev/null +++ b/patch/zoomswap.c @@ -0,0 +1,13 @@ + +#if !PERTAG_PATCH +static Client *prevzoom = NULL; +#endif // PERTAG_PATCH + +Client * +prevtiled(Client *c) { + Client *p; + if (!c || c == c->mon->clients) + return NULL; + for (p = c->mon->clients; p && p->next != c; p = p->next); + return p; +}
\ No newline at end of file diff --git a/patch/zoomswap.h b/patch/zoomswap.h new file mode 100644 index 0000000..31633b5 --- /dev/null +++ b/patch/zoomswap.h @@ -0,0 +1 @@ +static Client *prevtiled(Client *c);
\ No newline at end of file |
