From 49258829209347a7aef65f2e38d3eea29a9d45e0 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Wed, 29 May 2019 16:08:48 +0200 Subject: Use parent get_root_coords in subsurfaces Subsurfaces need access to the parent get_root_coords impl for positioning in popups. To do this, we store a reference to the parent view_child where applicable. Fixes #4191. --- include/sway/tree/view.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/sway/tree') diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h index bdd8960c..4ce487fc 100644 --- a/include/sway/tree/view.h +++ b/include/sway/tree/view.h @@ -192,8 +192,11 @@ struct sway_view_child_impl { */ struct sway_view_child { const struct sway_view_child_impl *impl; + struct wl_list link; struct sway_view *view; + struct sway_view_child *parent; + struct wl_list children; // sway_view_child::link struct wlr_surface *surface; bool mapped; -- cgit v1.2.3