summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2019-05-29 16:08:48 +0200
committerFurkan Sahin <furkan-dev@proton.me>2019-05-29 16:08:48 +0200
commitdafed4d4ad124f0eba19feae8cf450173192f2d2 (patch)
tree5abb4d4ac423790906caed48c9680b88949e087e /include
parent5f8caf4a38086f58488b10e2e986e84d35e383a2 (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/sway/tree/view.h3
1 files changed, 3 insertions, 0 deletions
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;