mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-07-22 03:04:13 +00:00
desktop-shell: Actually dirty surface regions when moving
weston_view_geometry_dirty() won't automatically clear out the old region, so manually damage underneath the view before we mark the geometry dirty. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
5ff5d0ea90
commit
0bee7ff4ee
|
@ -1721,8 +1721,12 @@ shell_surface_update_layer(struct shell_surface *shsurf)
|
|||
if (new_layer_link == &shsurf->view->layer_link)
|
||||
return;
|
||||
|
||||
/* Dirty the view's old region, and remove it from the layer. */
|
||||
weston_view_damage_below(shsurf->view);
|
||||
weston_view_geometry_dirty(shsurf->view);
|
||||
weston_layer_entry_remove(&shsurf->view->layer_link);
|
||||
|
||||
/* Add the surface to the new layer and dirty its new region. */
|
||||
weston_layer_entry_insert(new_layer_link, &shsurf->view->layer_link);
|
||||
weston_view_geometry_dirty(shsurf->view);
|
||||
weston_surface_damage(surface);
|
||||
|
|
Loading…
Reference in a new issue