diff --git a/config.def.h b/config.def.h index 61dd14a..469f70f 100644 --- a/config.def.h +++ b/config.def.h @@ -567,6 +567,7 @@ static const int nmaster = 1; /* number of clients in master area */ static const int nstack = 0; /* number of clients in primary stack area */ #endif // FLEXTILE_DELUXE_LAYOUT static const int resizehints = 0; /* 1 means respect size hints in tiled resizals */ +static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */ #if DECORATION_HINTS_PATCH static const int decorhints = 1; /* 1 means respect decoration hints */ #endif // DECORATION_HINTS_PATCH diff --git a/dwm.c b/dwm.c index a376707..803f77a 100644 --- a/dwm.c +++ b/dwm.c @@ -2018,7 +2018,7 @@ focusstack(const Arg *arg) if (!selmon->sel || (selmon->sel->isfullscreen && !selmon->sel->fakefullscreen)) return; #else - if (!selmon->sel || selmon->sel->isfullscreen) + if (!selmon->sel || (selmon->sel->isfullscreen && lockfullscreen)) return; #endif // LOSEFULLSCREEN_PATCH #if BAR_WINTITLEACTIONS_PATCH