From 7ec47d95b11cfb2b01817ce13d6ab5cf6899c09b Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sat, 7 Jun 2025 15:42:08 +0800 Subject: [PATCH] opt: Avoid shaking of the unmanged window position --- src/maomao.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/maomao.c b/src/maomao.c index d9a7d34..6f37678 100644 --- a/src/maomao.c +++ b/src/maomao.c @@ -4532,8 +4532,8 @@ mapnotify(struct wl_listener *listener, void *data) { if (client_is_unmanaged(c)) { /* Unmanaged clients always are floating */ wlr_scene_node_reparent(&c->scene->node, layers[LyrFloat]); - wlr_scene_node_set_position(&c->scene->node, c->geom.x + borderpx, - c->geom.y + borderpx); + wlr_scene_node_set_position(&c->scene->node, c->geom.x, + c->geom.y); if (client_wants_focus(c)) { focusclient(c, 1); exclusive_focus = c;