Revert "Revert "Fix popups""

This reverts commit 9aa258d33a.

Reverting the revert, so that popups can be fixed.
This commit is contained in:
Ryan Dwyer 2018-08-02 23:30:26 +10:00
parent ea14ef4095
commit 8392eae40f
10 changed files with 197 additions and 55 deletions

View file

@ -339,6 +339,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);