desktop-shell: Even if input is already mapped recalculate position

Otherwise when keyboard layout changes it gets positioned wrong.

Signed-off-by: Joscha.Wloch <Joscha.Wloch@bruker.com>
This commit is contained in:
Joscha.Wloch 2026-03-24 07:45:47 +01:00 committed by Joscha Wloch
parent a3a8cf0cf4
commit e37c64bc0d

View file

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