mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-28 21:37:28 -04:00
fix scroller stack swap
This commit is contained in:
parent
d7e8d02ced
commit
4638ad0483
1 changed files with 2 additions and 8 deletions
|
|
@ -569,14 +569,8 @@ bool client_is_in_same_stack(Client *sc, Client *tc, Client *fc) {
|
||||||
Client *source_stack_head = get_scroll_stack_head(sc);
|
Client *source_stack_head = get_scroll_stack_head(sc);
|
||||||
Client *target_stack_head = get_scroll_stack_head(tc);
|
Client *target_stack_head = get_scroll_stack_head(tc);
|
||||||
Client *fc_head = fc ? get_scroll_stack_head(fc) : NULL;
|
Client *fc_head = fc ? get_scroll_stack_head(fc) : NULL;
|
||||||
struct ScrollerStackNode *fc_node =
|
|
||||||
fc && fc->mon
|
if (fc && fc_head == source_stack_head)
|
||||||
? find_scroller_node(
|
|
||||||
fc->mon->pertag->scroller_state[fc->mon->pertag->curtag],
|
|
||||||
fc)
|
|
||||||
: NULL;
|
|
||||||
if (fc && (fc_node && fc_node->prev_in_stack) &&
|
|
||||||
fc_head == source_stack_head)
|
|
||||||
return false;
|
return false;
|
||||||
if (source_stack_head == target_stack_head)
|
if (source_stack_head == target_stack_head)
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue