diff options
| author | bakkeby <[email protected]> | 2019-10-02 00:03:21 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2019-10-02 00:03:21 +0200 |
| commit | 37b1b54ab9b79a144d6224264f39ad946aea5d4e (patch) | |
| tree | 31f7baee32f4a97b350978fd963129520e74308e /patch/fullscreen.c | |
| parent | 1cff0331278a2348046fcf27d13493abba3a5a4f (diff) | |
| download | dwm-flexipatch-37b1b54ab9b79a144d6224264f39ad946aea5d4e.tar.gz dwm-flexipatch-37b1b54ab9b79a144d6224264f39ad946aea5d4e.zip | |
Adding fullscreen, holdbar and unfloatvisible patches
Diffstat (limited to 'patch/fullscreen.c')
| -rw-r--r-- | patch/fullscreen.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/patch/fullscreen.c b/patch/fullscreen.c new file mode 100644 index 0000000..3ddb0e1 --- /dev/null +++ b/patch/fullscreen.c @@ -0,0 +1,13 @@ +Layout *last_layout; + +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 + } else { + setlayout(&((Arg) { .v = last_layout })); + } + togglebar(arg); +}
\ No newline at end of file |
