mirror of
https://github.com/swaywm/sway.git
synced 2026-05-03 06:46:26 -04:00
Remove layer_for_each_surface
This commit is contained in:
parent
f16142a488
commit
57eb7d9643
1 changed files with 8 additions and 15 deletions
|
|
@ -122,19 +122,6 @@ static void surface_for_each_surface(struct wlr_surface *surface,
|
|||
wlr_surface_for_each_surface(surface, iterator, user_data);
|
||||
}
|
||||
|
||||
static void layer_for_each_surface(struct wl_list *layer_surfaces,
|
||||
struct root_geometry *geo, wlr_surface_iterator_func_t iterator,
|
||||
void *user_data) {
|
||||
struct sway_layer_surface *layer_surface;
|
||||
wl_list_for_each(layer_surface, layer_surfaces, link) {
|
||||
struct wlr_layer_surface *wlr_layer_surface =
|
||||
layer_surface->layer_surface;
|
||||
surface_for_each_surface(wlr_layer_surface->surface,
|
||||
layer_surface->geo.x, layer_surface->geo.y, geo, iterator,
|
||||
user_data);
|
||||
}
|
||||
}
|
||||
|
||||
static void drag_icons_for_each_surface(struct wl_list *drag_icons,
|
||||
struct root_geometry *geo, wlr_surface_iterator_func_t iterator,
|
||||
void *user_data) {
|
||||
|
|
@ -239,8 +226,14 @@ static void render_layer(struct wl_list *layer_surfaces) {
|
|||
struct render_data data = {
|
||||
.alpha = 1.0f,
|
||||
};
|
||||
layer_for_each_surface(layer_surfaces, &data.root_geo,
|
||||
render_surface_iterator, &data);
|
||||
struct sway_layer_surface *layer_surface;
|
||||
wl_list_for_each(layer_surface, layer_surfaces, link) {
|
||||
struct wlr_layer_surface *wlr_layer_surface =
|
||||
layer_surface->layer_surface;
|
||||
surface_for_each_surface(wlr_layer_surface->surface,
|
||||
layer_surface->geo.x, layer_surface->geo.y, &data.root_geo,
|
||||
render_surface_iterator, &data);
|
||||
}
|
||||
}
|
||||
|
||||
static void render_unmanaged(struct wl_list *unmanaged) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue