From 3af596a8bc892bd21a8a2c9ffcae57da8143b2b5 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Wed, 21 Jun 2023 11:15:48 +0100 Subject: [PATCH] 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 --- libweston/compositor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libweston/compositor.c b/libweston/compositor.c index e2e2cb02..744ff2b8 100644 --- a/libweston/compositor.c +++ b/libweston/compositor.c @@ -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; }