diff options
author | Kenny Levinsen <kl@kl.wtf> | 2019-05-29 16:08:48 +0200 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-05-30 14:25:07 -0400 |
commit | 49258829209347a7aef65f2e38d3eea29a9d45e0 (patch) | |
tree | 6cc8859f3137b05d6c9b94635b2e11b78f39ff65 /include/sway | |
parent | Add swaybar protocol documentation (diff) | |
download | sway-49258829209347a7aef65f2e38d3eea29a9d45e0.tar.gz sway-49258829209347a7aef65f2e38d3eea29a9d45e0.tar.zst sway-49258829209347a7aef65f2e38d3eea29a9d45e0.zip |
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/sway')
-rw-r--r-- | include/sway/tree/view.h | 3 |
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 { | |||
192 | */ | 192 | */ |
193 | struct sway_view_child { | 193 | struct sway_view_child { |
194 | const struct sway_view_child_impl *impl; | 194 | const struct sway_view_child_impl *impl; |
195 | struct wl_list link; | ||
195 | 196 | ||
196 | struct sway_view *view; | 197 | struct sway_view *view; |
198 | struct sway_view_child *parent; | ||
199 | struct wl_list children; // sway_view_child::link | ||
197 | struct wlr_surface *surface; | 200 | struct wlr_surface *surface; |
198 | bool mapped; | 201 | bool mapped; |
199 | 202 | ||