diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-08-01 22:02:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-01 22:02:12 -0400 |
commit | 9564c73c0ddca9d7b45f0476fcaee8bd878d8345 (patch) | |
tree | 4405c7ab30e25c5234a61280a66d406921c52253 /sway/tree/view.c | |
parent | 4cc0855f21a2704314aa7b8973ceae7a8b463a1a (diff) | |
parent | 7a59508da467a3b793e355e28ae67ce04633761c (diff) | |
download | sway-9564c73c0ddca9d7b45f0476fcaee8bd878d8345.tar.xz |
Merge pull request #2391 from RyanDwyer/fix-popups-v2
Fix popups (v2)
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r-- | sway/tree/view.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index 48b39e80..02a33c10 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -302,6 +302,12 @@ void view_close(struct sway_view *view) { } } +void view_close_popups(struct sway_view *view) { + if (view->impl->close_popups) { + view->impl->close_popups(view); + } +} + void view_damage_from(struct sway_view *view) { for (int i = 0; i < root_container.children->length; ++i) { struct sway_container *cont = root_container.children->items[i]; @@ -332,6 +338,16 @@ void view_for_each_surface(struct sway_view *view, } } +void view_for_each_popup(struct sway_view *view, + wlr_surface_iterator_func_t iterator, void *user_data) { + if (!view->surface) { + return; + } + if (view->impl->for_each_popup) { + view->impl->for_each_popup(view, iterator, user_data); + } +} + static void view_subsurface_create(struct sway_view *view, struct wlr_subsurface *subsurface); |