mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-06-30 13:14:45 -04:00
opt: Ensure that the client remains in the linked list until it is destroyed
This commit is contained in:
parent
634ca7a51c
commit
22ecd84225
6 changed files with 54 additions and 41 deletions
|
|
@ -46,8 +46,8 @@ static void finish_exchange_arrange_and_focus(Client *c1, Client *c2,
|
|||
} else {
|
||||
arrange(c1->mon, false, false);
|
||||
}
|
||||
wl_list_remove(&c2->flink);
|
||||
wl_list_insert(&c1->flink, &c2->flink);
|
||||
|
||||
wl_list_safe_reinsert_next(&c1->flink, &c2->flink);
|
||||
|
||||
if (config.warpcursor)
|
||||
warp_cursor(c1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue