From 332c90049d5fd08a35b4e2e73312d9d5536e3e62 Mon Sep 17 00:00:00 2001 From: bakkeby Date: Tue, 7 Nov 2023 21:44:39 +0100 Subject: [PATCH] sticky: prioritise non-sticky windows on focus(NULL) correction ref. #387 --- dwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);