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:
parent
94a9cc1b24
commit
3af596a8bc
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue