mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
sticky: prioritise non-sticky windows on focus(NULL) correction ref. #387
This commit is contained in:
parent
63bab1aa8a
commit
332c90049d
2
dwm.c
2
dwm.c
@ -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…
Reference in New Issue
Block a user