Adding fullscreen, holdbar and unfloatvisible patches

This commit is contained in:
bakkeby
2019-10-02 00:03:21 +02:00
parent 1cff033127
commit 37b1b54ab9
12 changed files with 137 additions and 5 deletions

13
patch/fullscreen.c Normal file
View File

@@ -0,0 +1,13 @@
Layout *last_layout;
void
fullscreen(const Arg *arg)
{
if (selmon->showbar) {
for (last_layout = (Layout *)layouts; last_layout != selmon->lt[selmon->sellt]; last_layout++);
setlayout(&((Arg) { .v = &layouts[2] })); // <-- NB! hardcoded monocle
} else {
setlayout(&((Arg) { .v = last_layout }));
}
togglebar(arg);
}