From 5cf38785d5703e663c2cd7afb92f616d730c0d2e Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Wed, 14 Jun 2023 18:41:59 +0200 Subject: [PATCH] Fix fakefullscreen --- config.h | 2 +- dwm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.h b/config.h index 65275bb..8209e07 100644 --- a/config.h +++ b/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 diff --git a/dwm.c b/dwm.c index 4c05686..eef1cdd 100644 --- a/dwm.c +++ b/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 })); }