feat: support resize tile window

This commit is contained in:
DreamMaoMao 2025-10-09 13:09:40 +08:00
parent aec8c29210
commit ca48f95997
13 changed files with 1060 additions and 677 deletions

View file

@ -31,10 +31,8 @@ enum corner_location set_client_corner_location(Client *c) {
bool is_horizontal_stack_layout(Monitor *m) {
if (m->pertag->curtag &&
(strcmp(m->pertag->ltidxs[m->pertag->curtag]->name, "tile") == 0 ||
strcmp(m->pertag->ltidxs[m->pertag->curtag]->name, "spiral") == 0 ||
strcmp(m->pertag->ltidxs[m->pertag->curtag]->name, "dwindle") == 0 ||
strcmp(m->pertag->ltidxs[m->pertag->curtag]->name, "deck") == 0))
(m->pertag->ltidxs[m->pertag->curtag]->id == TILE ||
m->pertag->ltidxs[m->pertag->curtag]->id == DECK))
return true;
return false;
@ -897,6 +895,11 @@ void client_set_pending_state(Client *c) {
c->istagswitching = 0;
}
if (start_drag_window) {
c->animation.should_animate = false;
c->animation.duration = 0;
}
// 开始动画
client_commit(c);
c->dirty = true;