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

pull/393/head
bakkeby 6 months ago
parent 4a22fd046c
commit 63bab1aa8a

@ -2046,6 +2046,10 @@ focus(Client *c)
if (!c || !ISVISIBLE(c))
c = getpointerclient();
#endif // FOCUSFOLLOWMOUSE_PATCH
#if STICKY_PATCH
if (!c || !ISVISIBLE(c))
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);
if (selmon->sel && selmon->sel != c)

Loading…
Cancel
Save