diff options
| author | bakkeby <[email protected]> | 2020-08-11 10:25:19 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-08-11 10:25:19 +0200 |
| commit | 57e727b498e2916abdd7b819084c01c1db0f641b (patch) | |
| tree | 8eeea304450e03942ee6310e755d0906edb7d575 /patch | |
| parent | 10f4d513ec5df78db1c2b83706c208c3032e64ca (diff) | |
| download | dwm-flexipatch-57e727b498e2916abdd7b819084c01c1db0f641b.tar.gz dwm-flexipatch-57e727b498e2916abdd7b819084c01c1db0f641b.zip | |
Adding focusmaster patch
Diffstat (limited to 'patch')
| -rw-r--r-- | patch/focusmaster.c | 13 | ||||
| -rw-r--r-- | patch/focusmaster.h | 1 | ||||
| -rw-r--r-- | patch/include.c | 3 | ||||
| -rw-r--r-- | patch/include.h | 3 |
4 files changed, 20 insertions, 0 deletions
diff --git a/patch/focusmaster.c b/patch/focusmaster.c new file mode 100644 index 0000000..839fb43 --- /dev/null +++ b/patch/focusmaster.c @@ -0,0 +1,13 @@ +void +focusmaster(const Arg *arg) +{ + Client *c; + + if (selmon->nmaster < 1) + return; + + c = nexttiled(selmon->clients); + + if (c) + focus(c); +}
\ No newline at end of file diff --git a/patch/focusmaster.h b/patch/focusmaster.h new file mode 100644 index 0000000..5732e4b --- /dev/null +++ b/patch/focusmaster.h @@ -0,0 +1 @@ +static void focusmaster(const Arg *arg);
\ No newline at end of file diff --git a/patch/include.c b/patch/include.c index 68ff0c1..24293cd 100644 --- a/patch/include.c +++ b/patch/include.c @@ -105,6 +105,9 @@ #if FOCUSADJACENTTAG_PATCH #include "focusadjacenttag.c" #endif +#if FOCUSMASTER_PATCH +#include "focusmaster.c" +#endif #if FOCUSURGENT_PATCH #include "focusurgent.c" #endif diff --git a/patch/include.h b/patch/include.h index 6b695a1..2615109 100644 --- a/patch/include.h +++ b/patch/include.h @@ -105,6 +105,9 @@ #if FOCUSADJACENTTAG_PATCH #include "focusadjacenttag.h" #endif +#if FOCUSMASTER_PATCH +#include "focusmaster.h" +#endif #if FOCUSURGENT_PATCH #include "focusurgent.h" #endif |
