feat: don't autofocus floating windows
This commit is contained in:
parent
1a2f852093
commit
b4c17e4a80
1 changed files with 1 additions and 1 deletions
2
dwm.c
2
dwm.c
|
@ -939,7 +939,7 @@ void
|
||||||
focus(Client *c)
|
focus(Client *c)
|
||||||
{
|
{
|
||||||
if (!c || !ISVISIBLE(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)
|
if (selmon->sel && selmon->sel != c)
|
||||||
unfocus(selmon->sel, 0);
|
unfocus(selmon->sel, 0);
|
||||||
if (c) {
|
if (c) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue