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

This commit is contained in:
bakkeby 2023-11-07 21:44:39 +01:00
parent 63bab1aa8a
commit 332c90049d

2
dwm.c
View File

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