Adding nomodbuttons patch
This commit is contained in:
@@ -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
|
||||
|
@@ -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
7
patch/nomodbuttons.c
Normal 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
1
patch/nomodbuttons.h
Normal file
@@ -0,0 +1 @@
|
||||
static void togglenomodbuttons(const Arg *arg);
|
Reference in New Issue
Block a user