Adding togglefullscreen patch
This commit is contained in:
@ -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
|
||||
|
@ -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
7
patch/togglefullscreen.c
Normal 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
1
patch/togglefullscreen.h
Normal file
@ -0,0 +1 @@
|
||||
static void togglefullscreen(const Arg *arg);
|
Reference in New Issue
Block a user