Initial fix for sticky switching

This commit is contained in:
Ethan Marshall 2021-12-05 16:55:06 +00:00
parent 80109dbd85
commit 125a12548f
No known key found for this signature in database
GPG key ID: EC2FAEF4DB8968D8

2
dwm.c
View file

@ -952,7 +952,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->issticky); c = c->snext);
if (selmon->sel && selmon->sel != c)
unfocus(selmon->sel, 0);
if (c) {