Fix fakefullscreen

This commit is contained in:
Przemek Grondek 2023-06-14 18:41:59 +02:00
parent 8cd6ccf437
commit 5cf38785d5
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ static const Layout layouts[] = {
{ "[M]", monocle }, { "[M]", monocle },
{ NULL, NULL}, { NULL, NULL},
}; };
static const Layout* monocleLayout = &layouts[4]; static const Layout* monocleLayout = &layouts[4];
/* key definitions */ /* key definitions */
#define MODKEY Mod4Mask #define MODKEY Mod4Mask

2
dwm.c
View File

@ -1844,7 +1844,7 @@ fullscreen(const Arg *arg)
{ {
if (selmon->showbar) { if (selmon->showbar) {
for(last_layout = (Layout *)layouts; last_layout != selmon->lt[selmon->sellt]; last_layout++); for(last_layout = (Layout *)layouts; last_layout != selmon->lt[selmon->sellt]; last_layout++);
setlayout(&((Arg) { .v = &monocleLayout })); setlayout(&((Arg) { .v = monocleLayout }));
} else { } else {
setlayout(&((Arg) { .v = last_layout })); setlayout(&((Arg) { .v = last_layout }));
} }