From 7b9460e770b5fa5f53b1748dc82ddd664d7129af Mon Sep 17 00:00:00 2001 From: bakkeby Date: Thu, 29 Apr 2021 09:05:32 +0200 Subject: [PATCH] fakefullscreenclient + stacker: fix for allowing focusstack when client is in fake fullscreen (issue introduced by alwaysfullscreen being merged upstream --- dwm.c | 3 +++ patch/stacker.c | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/dwm.c b/dwm.c index f4ec7ca..73cafaf 100644 --- a/dwm.c +++ b/dwm.c @@ -2002,6 +2002,9 @@ focusstack(const Arg *arg) #if LOSEFULLSCREEN_PATCH if (!selmon->sel) return; + #elif FAKEFULLSCREEN_CLIENT_PATCH + if (!selmon->sel || (selmon->sel->isfullscreen && !selmon->sel->fakefullscreen)) + return; #else if (!selmon->sel || selmon->sel->isfullscreen) return; diff --git a/patch/stacker.c b/patch/stacker.c index 2b28319..f7f638e 100644 --- a/patch/stacker.c +++ b/patch/stacker.c @@ -7,7 +7,13 @@ focusstack(const Arg *arg) if (i < 0) return; - #if !LOSEFULLSCREEN_PATCH + #if LOSEFULLSCREEN_PATCH + if (!selmon->sel) + return; + #elif FAKEFULLSCREEN_CLIENT_PATCH + if (!selmon->sel || (selmon->sel->isfullscreen && !selmon->sel->fakefullscreen)) + return; + #else if (!selmon->sel || selmon->sel->isfullscreen) return; #endif // LOSEFULLSCREEN_PATCH