From e37c64bc0d3a013a1522fa9313576bdd89aede8f Mon Sep 17 00:00:00 2001 From: "Joscha.Wloch" Date: Tue, 24 Mar 2026 07:45:47 +0100 Subject: [PATCH] desktop-shell: Even if input is already mapped recalculate position Otherwise when keyboard layout changes it gets positioned wrong. Signed-off-by: Joscha.Wloch --- desktop-shell/input-panel.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/desktop-shell/input-panel.c b/desktop-shell/input-panel.c index a7645b7a4..89a0f33a4 100644 --- a/desktop-shell/input-panel.c +++ b/desktop-shell/input-panel.c @@ -191,7 +191,15 @@ input_panel_committed(struct weston_surface *surface, return; if (weston_surface_is_mapped(surface)) + { + if (shell->showing_input_panels) + { + struct weston_coord_global pos; + if (!calc_input_panel_position(ip_surface, &pos)) + weston_view_set_position(ip_surface->view, pos); + } return; + } weston_surface_map(surface);