diff options
Diffstat (limited to 'patch')
| -rw-r--r-- | patch/include.c | 6 | ||||
| -rw-r--r-- | patch/include.h | 6 | ||||
| -rw-r--r-- | patch/togglefullscreen.c | 7 | ||||
| -rw-r--r-- | patch/togglefullscreen.h | 1 |
4 files changed, 18 insertions, 2 deletions
diff --git a/patch/include.c b/patch/include.c index d14c844..aa64108 100644 --- a/patch/include.c +++ b/patch/include.c @@ -10,6 +10,10 @@ #include "systray.c" #endif +#if TOGGLEFULLSCREEN_PATCH +#include "togglefullscreen.c" +#endif + #if ZOOMSWAP_PATCH #include "zoomswap.c" -#endif // ZOOMSWAP_PATCH +#endif diff --git a/patch/include.h b/patch/include.h index 52b0514..972bd4e 100644 --- a/patch/include.h +++ b/patch/include.h @@ -6,6 +6,10 @@ #include "systray.h" #endif +#if TOGGLEFULLSCREEN_PATCH +#include "togglefullscreen.h" +#endif + #if ZOOMSWAP_PATCH #include "zoomswap.h" -#endif // ZOOMSWAP_PATCH
\ No newline at end of file +#endif
\ No newline at end of file diff --git a/patch/togglefullscreen.c b/patch/togglefullscreen.c new file mode 100644 index 0000000..c0fa203 --- /dev/null +++ b/patch/togglefullscreen.c @@ -0,0 +1,7 @@ +void +togglefullscreen(const Arg *arg) { + if (!selmon->sel) + return; + + setfullscreen(selmon->sel, !selmon->sel->isfullscreen); +}
\ No newline at end of file diff --git a/patch/togglefullscreen.h b/patch/togglefullscreen.h new file mode 100644 index 0000000..7e1126a --- /dev/null +++ b/patch/togglefullscreen.h @@ -0,0 +1 @@ +static void togglefullscreen(const Arg *arg);
\ No newline at end of file |
