shift: skip sticky clients when working out which tags are occupied ref. #387

This commit is contained in:
bakkeby 2023-11-08 21:09:27 +01:00
parent 332c90049d
commit ad9664fa01

View File

@ -18,6 +18,10 @@ shift(const Arg *arg, int clients)
for (c = selmon->clients; c && clients; c = c->next) { for (c = selmon->clients; c && clients; c = c->next) {
if (c == selmon->sel) if (c == selmon->sel)
continue; continue;
#if STICKY_PATCH
if (c->issticky)
continue;
#endif // STICKY_PATCH
#if SCRATCHPADS_PATCH && !RENAMED_SCRATCHPADS_PATCH #if SCRATCHPADS_PATCH && !RENAMED_SCRATCHPADS_PATCH
if (!(c->tags & SPTAGMASK)) if (!(c->tags & SPTAGMASK))
tagmask |= c->tags; tagmask |= c->tags;