summaryrefslogtreecommitdiffhomepage
path: root/patch/fullscreen.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2019-10-03 22:58:58 +0200
committerbakkeby <[email protected]>2019-10-03 22:58:58 +0200
commit40000bba1ce137d426a3844d2a10e2e646c7ea82 (patch)
treea3578b533802a37c75ca1313c3fcaebdb95067ab /patch/fullscreen.c
parent9ebd9c8397c395d1ec8daf27723a70c901315bb3 (diff)
downloaddwm-flexipatch-40000bba1ce137d426a3844d2a10e2e646c7ea82.tar.gz
dwm-flexipatch-40000bba1ce137d426a3844d2a10e2e646c7ea82.zip
Adding quitonlyonempty patch and made monocle layout position configurable for fullscreen and warp 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 3ddb0e1..aace550 100644
--- a/patch/fullscreen.c
+++ b/patch/fullscreen.c
@@ -1,11 +1,11 @@
-Layout *last_layout;
+Layout *last_layout = &layouts[0];
void
fullscreen(const Arg *arg)
{
if (selmon->showbar) {
for (last_layout = (Layout *)layouts; last_layout != selmon->lt[selmon->sellt]; last_layout++);
- setlayout(&((Arg) { .v = &layouts[2] })); // <-- NB! hardcoded monocle
+ setlayout(&((Arg) { .v = &layouts[MONOCLE_LAYOUT_POS] }));
} else {
setlayout(&((Arg) { .v = last_layout }));
}