summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index ceef8e1..5a62ba8 100644
--- a/dwm.c
+++ b/dwm.c
@@ -917,7 +917,7 @@ togglefocusfloat(const Arg *arg)
c = nexttiled(selmon->clients);
} else if (!selmon->sel->isfullscreen) { /* Prevent focus shifting in fullscreen */
for (c = selmon->clients; c; c = c->next)
- if (c->isfloating)
+ if (c->isfloating && ISVISIBLE(c))
break;
}