mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-05 04:06:28 -05:00
fix: fix exchange client error when not in scroller layout
This commit is contained in:
parent
5942c5d807
commit
1124d47786
1 changed files with 2 additions and 1 deletions
|
|
@ -4444,7 +4444,8 @@ void exchange_two_client(Client *c1, Client *c2) {
|
||||||
tmp2_prev_in_stack->next_in_stack = c1;
|
tmp2_prev_in_stack->next_in_stack = c1;
|
||||||
if (tmp1_next_in_stack)
|
if (tmp1_next_in_stack)
|
||||||
tmp1_next_in_stack->prev_in_stack = c2;
|
tmp1_next_in_stack->prev_in_stack = c2;
|
||||||
} else if (c1->prev_in_stack || c2->prev_in_stack) {
|
} else if (is_scroller_layout(c1->mon) &&
|
||||||
|
(c1->prev_in_stack || c2->prev_in_stack)) {
|
||||||
Client *c1head = get_scroll_stack_head(c1);
|
Client *c1head = get_scroll_stack_head(c1);
|
||||||
Client *c2head = get_scroll_stack_head(c2);
|
Client *c2head = get_scroll_stack_head(c2);
|
||||||
exchange_two_client(c1head, c2head);
|
exchange_two_client(c1head, c2head);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue