Fix fakefullscreen
This commit is contained in:
parent
8cd6ccf437
commit
5cf38785d5
2 changed files with 2 additions and 2 deletions
2
config.h
2
config.h
|
@ -99,7 +99,7 @@ static const Layout layouts[] = {
|
|||
{ "[M]", monocle },
|
||||
{ NULL, NULL},
|
||||
};
|
||||
static const Layout* monocleLayout = &layouts[4];
|
||||
static const Layout* monocleLayout = &layouts[4];
|
||||
|
||||
/* key definitions */
|
||||
#define MODKEY Mod4Mask
|
||||
|
|
2
dwm.c
2
dwm.c
|
@ -1844,7 +1844,7 @@ fullscreen(const Arg *arg)
|
|||
{
|
||||
if (selmon->showbar) {
|
||||
for(last_layout = (Layout *)layouts; last_layout != selmon->lt[selmon->sellt]; last_layout++);
|
||||
setlayout(&((Arg) { .v = &monocleLayout }));
|
||||
setlayout(&((Arg) { .v = monocleLayout }));
|
||||
} else {
|
||||
setlayout(&((Arg) { .v = last_layout }));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue