mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-02 09:01:43 -05:00
opt: optimzie drag_tile_to_tile logic
This commit is contained in:
parent
94f502915e
commit
67259641de
1 changed files with 3 additions and 1 deletions
|
|
@ -2556,12 +2556,14 @@ void place_drag_tile_client(Client *c) {
|
|||
}
|
||||
}
|
||||
}
|
||||
if(closest_client) {
|
||||
if(closest_client && closest_client->link.prev != &c->link) {
|
||||
wl_list_remove(&c->link);
|
||||
c->link.next = &closest_client->link;
|
||||
c->link.prev = closest_client->link.prev;
|
||||
closest_client->link.prev->next = &c->link;
|
||||
closest_client->link.prev = &c->link;
|
||||
} else if(closest_client) {
|
||||
exchange_two_client(c, closest_client);
|
||||
}
|
||||
setfloating(c, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue