feat: don't autofocus floating windows

This commit is contained in:
Arthur Khachaturov 2024-08-23 15:45:38 +03:00
parent 1a2f852093
commit b4c17e4a80
No known key found for this signature in database
GPG key ID: CAC2B7EB6DF45D55

2
dwm.c
View file

@ -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) {