mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-07 04:58:16 +02:00
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:
parent
a3a8cf0cf4
commit
e37c64bc0d
1 changed files with 8 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue