surface: Use parent_view to find subsurface views

View transform parents can be set by anyone. parent_view, on the other
hand, is only set for subsurfaces.

Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Daniel Stone 2023-06-21 11:15:48 +01:00
parent 94a9cc1b24
commit 3af596a8bc
1 changed files with 1 additions and 1 deletions

View File

@ -2967,7 +2967,7 @@ view_list_add_subsurface_view(struct weston_compositor *compositor,
return;
wl_list_for_each(iv, &sub->unused_views, surface_link) {
if (iv->geometry.parent == parent) {
if (iv->parent_view == parent) {
view = iv;
break;
}