summaryrefslogtreecommitdiffhomepage
path: root/patch/focusmaster.c
diff options
context:
space:
mode:
Diffstat (limited to 'patch/focusmaster.c')
-rw-r--r--patch/focusmaster.c13
1 files changed, 13 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