From 1dbc5fe2edb30f8a25df3d305c1802e04706c48b Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Tue, 13 May 2025 09:41:30 +0800 Subject: [PATCH] opt: want focus x11 client still center pos --- src/maomao.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/maomao.c b/src/maomao.c index 288e931..e3bdada 100644 --- a/src/maomao.c +++ b/src/maomao.c @@ -5299,7 +5299,7 @@ setfloating(Client *c, int floating) { target_box.width = target_box.width * 0.8; } // 重新计算居中的坐标 - if(!client_is_x11(c)) + if(client_is_x11(c) && client_surface_wants_focus(c)) target_box = setclient_coordinate_center(target_box, 0, 0); backup_box = c->geom; hit = applyrulesgeom(c);