summaryrefslogtreecommitdiffhomepage
path: root/patch
diff options
context:
space:
mode:
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