From a6a14a0c7cd8cc57d2fee13422a6a3077d597bfa Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sat, 8 Feb 2025 13:14:03 +0800 Subject: [PATCH] fix:resize uncomplete for zed --- main.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/main.c b/main.c index 91487db..c88200f 100644 --- a/main.c +++ b/main.c @@ -1727,8 +1727,7 @@ void client_set_pending_state(Client *c) { } // 开始动画 - if(client_is_x11(c)) - client_commit(c); + client_commit(c); c->dirty = true; } @@ -1760,17 +1759,8 @@ commitnotify(struct wl_listener *listener, void *data) { if(!c || c->iskilling) 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 - client_commit(c); + resize(c, c->geom, (c->isfloating && !c->isfullscreen)); }