mirror of
https://github.com/swaywm/sway.git
synced 2025-11-12 13:29:56 -05:00
commit
9564c73c0d
11 changed files with 239 additions and 55 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue