summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--dwm.c3
-rw-r--r--patch/stacker.c8
2 files changed, 10 insertions, 1 deletions
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