summaryrefslogtreecommitdiffhomepage
path: root/patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch')
-rw-r--r--patch/include.c3
-rw-r--r--patch/include.h3
-rw-r--r--patch/nomodbuttons.c7
-rw-r--r--patch/nomodbuttons.h1
4 files changed, 14 insertions, 0 deletions
diff --git a/patch/include.c b/patch/include.c
index 50af31a..69092aa 100644
--- a/patch/include.c
+++ b/patch/include.c
@@ -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
diff --git a/patch/include.h b/patch/include.h
index 63a1387..e7ba3bb 100644
--- a/patch/include.h
+++ b/patch/include.h
@@ -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
diff --git a/patch/nomodbuttons.c b/patch/nomodbuttons.c
new file mode 100644
index 0000000..c4e082e
--- /dev/null
+++ b/patch/nomodbuttons.c
@@ -0,0 +1,7 @@
+void
+togglenomodbuttons(const Arg *arg)
+{
+ nomodbuttons = !nomodbuttons;
+ if (selmon->sel)
+ grabbuttons(selmon->sel, 1);
+} \ No newline at end of file
diff --git a/patch/nomodbuttons.h b/patch/nomodbuttons.h
new file mode 100644
index 0000000..4e6c572
--- /dev/null
+++ b/patch/nomodbuttons.h
@@ -0,0 +1 @@
+static void togglenomodbuttons(const Arg *arg); \ No newline at end of file