mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-18 06:59:53 -05:00
feat: support resize tile window
This commit is contained in:
parent
731bd9c0df
commit
3086130a2c
13 changed files with 1060 additions and 678 deletions
|
|
@ -17,10 +17,8 @@ bool is_horizontal_stack_layout(Monitor *m) {
|
|||
return true;
|
||||
|
||||
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;
|
||||
|
|
@ -777,6 +775,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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue