Adding togglefullscreen patch

This commit is contained in:
bakkeby
2019-09-05 23:27:33 +02:00
parent e681ab5dd9
commit 448f8db4c2
7 changed files with 31 additions and 3 deletions

View File

@ -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

View File

@ -6,6 +6,10 @@
#include "systray.h"
#endif
#if TOGGLEFULLSCREEN_PATCH
#include "togglefullscreen.h"
#endif
#if ZOOMSWAP_PATCH
#include "zoomswap.h"
#endif // ZOOMSWAP_PATCH
#endif

7
patch/togglefullscreen.c Normal file
View File

@ -0,0 +1,7 @@
void
togglefullscreen(const Arg *arg) {
if (!selmon->sel)
return;
setfullscreen(selmon->sel, !selmon->sel->isfullscreen);
}

1
patch/togglefullscreen.h Normal file
View File

@ -0,0 +1 @@
static void togglefullscreen(const Arg *arg);