From b4c17e4a803f668ba42f221187af1e04d37c6b18 Mon Sep 17 00:00:00 2001 From: Arthur Khachaturov Date: Fri, 23 Aug 2024 15:45:38 +0300 Subject: [PATCH] feat: don't autofocus floating windows --- dwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwm.c b/dwm.c index 349744f..61a75b2 100644 --- a/dwm.c +++ b/dwm.c @@ -939,7 +939,7 @@ void focus(Client *c) { if (!c || !ISVISIBLE(c)) - for (c = selmon->stack; c && !ISVISIBLE(c); c = c->snext); + for (c = selmon->stack; c && (!ISVISIBLE(c) || c->isfloating); c = c->snext); if (selmon->sel && selmon->sel != c) unfocus(selmon->sel, 0); if (c) {