Adding focusmaster patch

This commit is contained in:
bakkeby
2020-08-11 10:25:19 +02:00
parent 10f4d513ec
commit 57e727b498
7 changed files with 31 additions and 0 deletions

13
patch/focusmaster.c Normal file
View File

@@ -0,0 +1,13 @@
void
focusmaster(const Arg *arg)
{
Client *c;
if (selmon->nmaster < 1)
return;
c = nexttiled(selmon->clients);
if (c)
focus(c);
}

1
patch/focusmaster.h Normal file
View File

@@ -0,0 +1 @@
static void focusmaster(const Arg *arg);

View File

@@ -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

View File

@@ -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