Adding quitonlyonempty patch and made monocle layout position configurable for fullscreen and warp patches
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
Layout *last_layout;
|
||||
Layout *last_layout = &layouts[0];
|
||||
|
||||
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
|
||||
setlayout(&((Arg) { .v = &layouts[MONOCLE_LAYOUT_POS] }));
|
||||
} else {
|
||||
setlayout(&((Arg) { .v = last_layout }));
|
||||
}
|
||||
|
Reference in New Issue
Block a user