dwm

personal fork of dwm (rnpnr branch)
git clone anongit@rnpnr.xyz:dwm.git
Log | Files | Refs | Feed | README | LICENSE

Commit: f3ac9a8a6d9df33c7b55a81ae3f36aa90c4de141
Parent: aa5f436d8ada8edabced2c5b8edde90f11b5c729
Author: Randy Palamar
Date:   Wed, 14 Jul 2021 14:25:12 -0600

update fakefullscreen with the ideas from the lockfullscreen commit

this makes it so that when in fullscreen mode you can't navigate away from
a fullscreen window using focusstack(). this behaviour didn't make sense
since, if you navigated away, you couldn't actually tell which window was
focused and this made it annoying to un-fullscreen. now you can navigate
away from a fakefullscreen window but not a real fullscreen window.

Diffstat:
Mconfig.def.h | 3+--
Mdwm.c | 2+-
2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -18,7 +18,6 @@ static const char *colors[][3] = { [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, [SchemeSel] = { col_gray4, col_cyan, col_cyan }, }; -static int fakefullscreen = 1; /* tagging */ static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; @@ -37,7 +36,7 @@ static const Rule rules[] = { static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ static const int nmaster = 1; /* number of clients in master area */ static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ -static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */ +static int fakefullscreen = 1; static const Layout layouts[] = { /* symbol arrange function */ diff --git a/dwm.c b/dwm.c @@ -847,7 +847,7 @@ focusstack(const Arg *arg) { Client *c = NULL, *i; - if (!selmon->sel || (selmon->sel->isfullscreen && lockfullscreen)) + if (!selmon->sel || (selmon->sel->isfullscreen && !fakefullscreen)) return; if (arg->i > 0) { for (c = selmon->sel->next; c && !ISVISIBLE(c); c = c->next);