summaryrefslogtreecommitdiffhomepage
path: root/patch
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2019-11-21 12:15:16 +0100
committerbakkeby <[email protected]>2019-11-21 12:23:38 +0100
commit9b85650c1dd6c43afb752edc22d2e038abac00ac (patch)
treefe6955280523191d62a9030560a10e6755067ba9 /patch
parent5fa724da0d14d64870bf85cbfa994d4760ec325a (diff)
downloaddwm-flexipatch-9b85650c1dd6c43afb752edc22d2e038abac00ac.tar.gz
dwm-flexipatch-9b85650c1dd6c43afb752edc22d2e038abac00ac.zip
Adding fakefullscreeenclient patch
Diffstat (limited to 'patch')
-rw-r--r--patch/fakefullscreenclient.c17
-rw-r--r--patch/fakefullscreenclient.h1
-rw-r--r--patch/include.c3
-rw-r--r--patch/include.h3
4 files changed, 24 insertions, 0 deletions
diff --git a/patch/fakefullscreenclient.c b/patch/fakefullscreenclient.c
new file mode 100644
index 0000000..5b3d7af
--- /dev/null
+++ b/patch/fakefullscreenclient.c
@@ -0,0 +1,17 @@
+void
+togglefakefullscreen(const Arg *arg)
+{
+ if (!selmon->sel)
+ return;
+
+ if (selmon->sel->fakefullscreen) {
+ if (selmon->sel->isfullscreen)
+ selmon->sel->fakefullscreen = 0;
+ else
+ selmon->sel->isfullscreen = 0;
+ } else {
+ selmon->sel->fakefullscreen = 1;
+ selmon->sel->isfullscreen = 0;
+ }
+ setfullscreen(selmon->sel, !selmon->sel->isfullscreen);
+} \ No newline at end of file
diff --git a/patch/fakefullscreenclient.h b/patch/fakefullscreenclient.h
new file mode 100644
index 0000000..e2a36d1
--- /dev/null
+++ b/patch/fakefullscreenclient.h
@@ -0,0 +1 @@
+static void togglefakefullscreen(const Arg *arg); \ No newline at end of file
diff --git a/patch/include.c b/patch/include.c
index 9b0fd0d..346839c 100644
--- a/patch/include.c
+++ b/patch/include.c
@@ -32,6 +32,9 @@
#if EWMHTAGS_PATCH
#include "ewmhtags.c"
#endif
+#if FAKEFULLSCREEN_CLIENT_PATCH
+#include "fakefullscreenclient.c"
+#endif
#if FOCUSADJACENTTAG_PATCH
#include "focusadjacenttag.c"
#endif
diff --git a/patch/include.h b/patch/include.h
index 4ae5675..bce929e 100644
--- a/patch/include.h
+++ b/patch/include.h
@@ -35,6 +35,9 @@
#if EXRESIZE_PATCH
#include "exresize.h"
#endif
+#if FAKEFULLSCREEN_CLIENT_PATCH
+#include "fakefullscreenclient.h"
+#endif
#if FOCUSADJACENTTAG_PATCH
#include "focusadjacenttag.h"
#endif