sticky: prioritise non-sticky windows on focus(NULL) correction ref. #387

pull/393/head
bakkeby 6 months ago
parent 63bab1aa8a
commit 332c90049d

@ -2048,7 +2048,7 @@ focus(Client *c)
#endif // FOCUSFOLLOWMOUSE_PATCH
#if STICKY_PATCH
if (!c || !ISVISIBLE(c))
for (c = selmon->stack; c && !ISVISIBLE(c) && !c->issticky; c = c->snext);
for (c = selmon->stack; c && (!ISVISIBLE(c) || c->issticky); c = c->snext);
#endif // STICKY_PATCH
if (!c || !ISVISIBLE(c))
for (c = selmon->stack; c && !ISVISIBLE(c); c = c->snext);

Loading…
Cancel
Save