my flexipatch

This commit is contained in:
2022-09-23 00:01:22 +02:00
commit 1028bffd8d
288 changed files with 28740 additions and 0 deletions

18
patch/togglefullscreen.c Normal file
View File

@@ -0,0 +1,18 @@
void
togglefullscreen(const Arg *arg)
{
Client *c = selmon->sel;
if (!c)
return;
#if FAKEFULLSCREEN_CLIENT_PATCH && !FAKEFULLSCREEN_PATCH
if (c->fakefullscreen == 1) { // fake fullscreen --> fullscreen
c->fakefullscreen = 2;
setfullscreen(c, 1);
} else
setfullscreen(c, !c->isfullscreen);
#else
setfullscreen(c, !c->isfullscreen);
#endif // FAKEFULLSCREEN_CLIENT_PATCH
}