Commit: 28f6ca73d084289162e77e01134b867d9c072789
Parent: c18f25e97c80e9540f987d06e137fb71b3e99b42
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:
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
@@ -848,7 +848,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);