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