summaryrefslogtreecommitdiffhomepage
path: root/patch/fullscreen.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2019-10-06 23:43:51 +0200
committerbakkeby <[email protected]>2019-10-06 23:43:51 +0200
commit132ceee07309efc81476a55a1ff80ebb9b594291 (patch)
tree10f1e03020046458cb17f3fe67b2f78e27983e22 /patch/fullscreen.c
parentac4269a4f28f29bad9a319993ad814830248f89a (diff)
downloaddwm-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.c4
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 {