diff options
| author | bakkeby <[email protected]> | 2019-10-06 23:43:51 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2019-10-06 23:43:51 +0200 |
| commit | 132ceee07309efc81476a55a1ff80ebb9b594291 (patch) | |
| tree | 10f1e03020046458cb17f3fe67b2f78e27983e22 /patch/fullscreen.c | |
| parent | ac4269a4f28f29bad9a319993ad814830248f89a (diff) | |
| download | dwm-flexipatch-132ceee07309efc81476a55a1ff80ebb9b594291.tar.gz dwm-flexipatch-132ceee07309efc81476a55a1ff80ebb9b594291.zip | |
Added statusallmons patch, fixed minor cross-compatibility issues for killunsel, fullscreen, noborder, tagintostack patches
Diffstat (limited to 'patch/fullscreen.c')
| -rw-r--r-- | patch/fullscreen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patch/fullscreen.c b/patch/fullscreen.c index aace550..ac50f37 100644 --- a/patch/fullscreen.c +++ b/patch/fullscreen.c @@ -1,9 +1,9 @@ -Layout *last_layout = &layouts[0]; +Layout *last_layout; void fullscreen(const Arg *arg) { - if (selmon->showbar) { + if (selmon->showbar || last_layout == NULL) { for (last_layout = (Layout *)layouts; last_layout != selmon->lt[selmon->sellt]; last_layout++); setlayout(&((Arg) { .v = &layouts[MONOCLE_LAYOUT_POS] })); } else { |
