mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-21 06:59:53 -05:00
feat: support resize tile window
This commit is contained in:
parent
aec8c29210
commit
ca48f95997
13 changed files with 1060 additions and 677 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue