Xinqi Bao's Git

Do not allow focus to drift from fullscreen client via focusstack()
[dwm.git] / dwm.c
diff --git a/dwm.c b/dwm.c
index 664c527..b0b3466 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -835,7 +835,7 @@ focusstack(const Arg *arg)
 {
        Client *c = NULL, *i;
 
-       if (!selmon->sel)
+       if (!selmon->sel || selmon->sel->isfullscreen)
                return;
        if (arg->i > 0) {
                for (c = selmon->sel->next; c && !ISVISIBLE(c); c = c->next);