xwm: update override-redirect surface's position upon configure_notify
When we receive configure_notify we should update the surface's position by calling xwayland_api->set_xwayland(). Otherwise some surfaces like dnd surfaces from xwayland views are "stuck" at one place. When setting XWAYLAND state though we should always call view_set_position(), not just the first time we set this state. Signed-off-by: Ilia Bozhinov <ammen99@gmail.com> Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
committed by
Quentin Glidic
parent
749637a8a3
commit
3e5303daf4
@@ -112,7 +112,6 @@ weston_desktop_xwayland_surface_change_state(struct weston_desktop_xwayland_surf
|
||||
weston_desktop_surface_create_view(surface->surface);
|
||||
weston_layer_entry_insert(&surface->xwayland->layer.view_list,
|
||||
&surface->view->layer_link);
|
||||
weston_view_set_position(surface->view, x, y);
|
||||
surface->view->is_mapped = true;
|
||||
wsurface->is_mapped = true;
|
||||
}
|
||||
@@ -316,6 +315,7 @@ set_xwayland(struct weston_desktop_xwayland_surface *surface, int x, int y)
|
||||
{
|
||||
weston_desktop_xwayland_surface_change_state(surface, XWAYLAND, NULL,
|
||||
x, y);
|
||||
weston_view_set_position(surface->view, x, y);
|
||||
}
|
||||
|
||||
static int
|
||||
|
||||
Reference in New Issue
Block a user