summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2024-08-30 15:46:56 +0400
committerSuleyman Farajli <suleyman@farajli.net>2025-05-27 23:53:47 +0400
commit90beaa6a33dc2e2bd55f078cfa833321b194d428 (patch)
tree398701cbef9e2e1a19a6203f484face453d45822
parent48713517508b579dba5bb1de617636a832ac99fd (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;
}