opt: swallow inherit global

This commit is contained in:
DreamMaoMao 2026-05-10 09:34:01 +08:00
parent bb168d12a8
commit bccdb5d4c5

View file

@ -1178,6 +1178,7 @@ void swallow(Client *c, Client *w) {
c->scroller_proportion = w->scroller_proportion;
c->next_in_stack = w->next_in_stack;
c->prev_in_stack = w->prev_in_stack;
c->isglobal = w->isglobal;
if (w->next_in_stack)
w->next_in_stack->prev_in_stack = c;