feat: support resize tile window
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user