Rename output_layer_for_each_surface_{toplevel,popup}

Swap the "surface" part for consistency with wlroots' naming.
This commit is contained in:
Simon Ser 2021-01-08 10:53:36 +01:00
parent 5438cc158a
commit 1c3cfd3bac
3 changed files with 6 additions and 6 deletions

View file

@ -124,11 +124,11 @@ void output_layer_for_each_surface(struct sway_output *output,
struct wl_list *layer_surfaces, sway_surface_iterator_func_t iterator,
void *user_data);
void output_layer_for_each_surface_toplevel(struct sway_output *output,
void output_layer_for_each_toplevel_surface(struct sway_output *output,
struct wl_list *layer_surfaces, sway_surface_iterator_func_t iterator,
void *user_data);
void output_layer_for_each_surface_popup(struct sway_output *output,
void output_layer_for_each_popup_surface(struct sway_output *output,
struct wl_list *layer_surfaces, sway_surface_iterator_func_t iterator,
void *user_data);

View file

@ -243,7 +243,7 @@ void output_layer_for_each_surface(struct sway_output *output,
}
}
void output_layer_for_each_surface_toplevel(struct sway_output *output,
void output_layer_for_each_toplevel_surface(struct sway_output *output,
struct wl_list *layer_surfaces, sway_surface_iterator_func_t iterator,
void *user_data) {
struct sway_layer_surface *layer_surface;
@ -257,7 +257,7 @@ void output_layer_for_each_surface_toplevel(struct sway_output *output,
}
void output_layer_for_each_surface_popup(struct sway_output *output,
void output_layer_for_each_popup_surface(struct sway_output *output,
struct wl_list *layer_surfaces, sway_surface_iterator_func_t iterator,
void *user_data) {
struct sway_layer_surface *layer_surface;

View file

@ -171,7 +171,7 @@ static void render_layer_toplevel(struct sway_output *output,
.damage = damage,
.alpha = 1.0f,
};
output_layer_for_each_surface_toplevel(output, layer_surfaces,
output_layer_for_each_toplevel_surface(output, layer_surfaces,
render_surface_iterator, &data);
}
@ -181,7 +181,7 @@ static void render_layer_popups(struct sway_output *output,
.damage = damage,
.alpha = 1.0f,
};
output_layer_for_each_surface_popup(output, layer_surfaces,
output_layer_for_each_popup_surface(output, layer_surfaces,
render_surface_iterator, &data);
}