diff --git a/dwm.c b/dwm.c index 0ffc759..a64dfec 100644 --- a/dwm.c +++ b/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);