summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2024-08-30 15:46:56 +0400
committerSuleyman Farajli <suleyman@farajli.net>2024-08-30 15:46:56 +0400
commit196ab4dab889902a4114c67b115f8064cdac0cdc (patch)
tree4ecd8c75b4dbf4ee5c34df4d8cbfdb8f52b5d1e4
parentd432e1bf60bd1c1a3746354581c79c3df526b922 (diff)
togglefocusfloat bug fix
-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;
}