From 90beaa6a33dc2e2bd55f078cfa833321b194d428 Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Fri, 30 Aug 2024 15:46:56 +0400 Subject: togglefocusfloat bug fix --- dwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3