mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-07 13:29:59 -05:00
fix:resize uncomplete for zed
This commit is contained in:
parent
ea534d3cda
commit
a6a14a0c7c
1 changed files with 2 additions and 12 deletions
12
main.c
12
main.c
|
|
@ -1727,7 +1727,6 @@ void client_set_pending_state(Client *c) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 开始动画
|
// 开始动画
|
||||||
if(client_is_x11(c))
|
|
||||||
client_commit(c);
|
client_commit(c);
|
||||||
c->dirty = true;
|
c->dirty = true;
|
||||||
}
|
}
|
||||||
|
|
@ -1760,17 +1759,8 @@ commitnotify(struct wl_listener *listener, void *data) {
|
||||||
|
|
||||||
if(!c || c->iskilling)
|
if(!c || c->iskilling)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(!c->surface.xdg->toplevel->base->initialized) return;
|
|
||||||
|
|
||||||
if(c->surface.xdg->toplevel->base->initial_commit) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!client_surface(c)->mapped) return;
|
|
||||||
|
|
||||||
// if don't do this, some client may resize uncompleted
|
// if don't do this, some client may resize uncompleted
|
||||||
client_commit(c);
|
resize(c, c->geom, (c->isfloating && !c->isfullscreen));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue