Adding nomodbuttons patch

This commit is contained in:
bakkeby
2020-09-18 10:53:07 +02:00
parent 8aa21b0311
commit 00320fb842
8 changed files with 46 additions and 2 deletions

View File

@@ -174,6 +174,9 @@
#if MOVESTACK_PATCH
#include "movestack.c"
#endif
#if NO_MOD_BUTTONS_PATCH
#include "nomodbuttons.c"
#endif
#if PERTAG_PATCH
#include "pertag.c"
#endif

View File

@@ -170,6 +170,9 @@
#if MOVESTACK_PATCH
#include "movestack.h"
#endif
#if NO_MOD_BUTTONS_PATCH
#include "nomodbuttons.h"
#endif
#if PERTAG_PATCH
#include "pertag.h"
#endif

7
patch/nomodbuttons.c Normal file
View File

@@ -0,0 +1,7 @@
void
togglenomodbuttons(const Arg *arg)
{
nomodbuttons = !nomodbuttons;
if (selmon->sel)
grabbuttons(selmon->sel, 1);
}

1
patch/nomodbuttons.h Normal file
View File

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