opt: Avoid shaking of the unmanged window position

This commit is contained in:
DreamMaoMao 2025-06-07 15:42:08 +08:00
parent 5aaf8d7625
commit 7ec47d95b1

View file

@ -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;