diff options
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 |
