summaryrefslogtreecommitdiffhomepage
path: root/patch
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-09-18 10:53:07 +0200
committerbakkeby <[email protected]>2020-09-18 10:53:07 +0200
commit00320fb842703d6ee219aa2ed1f71f4d0247ed93 (patch)
treee233b8c900a71713ef55705a0848ba0bcefaa444 /patch
parent8aa21b03114a62f4113d0b9410649ca13692886e (diff)
downloaddwm-flexipatch-00320fb842703d6ee219aa2ed1f71f4d0247ed93.tar.gz
dwm-flexipatch-00320fb842703d6ee219aa2ed1f71f4d0247ed93.zip
Adding nomodbuttons patch
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