aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2021-01-08 10:53:36 +0100
committerLibravatar Simon Ser <contact@emersion.fr>2021-01-12 11:25:34 +0100
commit1c3cfd3bac4d408b3f27cde0d4dca2ce2f77834f (patch)
treee1721c911942a01b1e6e675101270aa021500a28
parentSwitch to wlr_xdg_surface_for_each_popup_surface (diff)
downloadsway-1c3cfd3bac4d408b3f27cde0d4dca2ce2f77834f.tar.gz
sway-1c3cfd3bac4d408b3f27cde0d4dca2ce2f77834f.tar.zst
sway-1c3cfd3bac4d408b3f27cde0d4dca2ce2f77834f.zip
Rename output_layer_for_each_surface_{toplevel,popup}
Swap the "surface" part for consistency with wlroots' naming.
-rw-r--r--include/sway/output.h4
-rw-r--r--sway/desktop/output.c4
-rw-r--r--sway/desktop/render.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/include/sway/output.h b/include/sway/output.h
index 300fcd48..96986700 100644
--- a/include/sway/output.h
+++ b/include/sway/output.h
@@ -124,11 +124,11 @@ void output_layer_for_each_surface(struct sway_output *output,
124 struct wl_list *layer_surfaces, sway_surface_iterator_func_t iterator, 124 struct wl_list *layer_surfaces, sway_surface_iterator_func_t iterator,
125 void *user_data); 125 void *user_data);
126 126
127void output_layer_for_each_surface_toplevel(struct sway_output *output, 127void output_layer_for_each_toplevel_surface(struct sway_output *output,
128 struct wl_list *layer_surfaces, sway_surface_iterator_func_t iterator, 128 struct wl_list *layer_surfaces, sway_surface_iterator_func_t iterator,
129 void *user_data); 129 void *user_data);
130 130
131void output_layer_for_each_surface_popup(struct sway_output *output, 131void output_layer_for_each_popup_surface(struct sway_output *output,
132 struct wl_list *layer_surfaces, sway_surface_iterator_func_t iterator, 132 struct wl_list *layer_surfaces, sway_surface_iterator_func_t iterator,
133 void *user_data); 133 void *user_data);
134 134
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index 7921d597..5edc8f96 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -243,7 +243,7 @@ void output_layer_for_each_surface(struct sway_output *output,
243 } 243 }
244} 244}
245 245
246void output_layer_for_each_surface_toplevel(struct sway_output *output, 246void output_layer_for_each_toplevel_surface(struct sway_output *output,
247 struct wl_list *layer_surfaces, sway_surface_iterator_func_t iterator, 247 struct wl_list *layer_surfaces, sway_surface_iterator_func_t iterator,
248 void *user_data) { 248 void *user_data) {
249 struct sway_layer_surface *layer_surface; 249 struct sway_layer_surface *layer_surface;
@@ -257,7 +257,7 @@ void output_layer_for_each_surface_toplevel(struct sway_output *output,
257} 257}
258 258
259 259
260void output_layer_for_each_surface_popup(struct sway_output *output, 260void output_layer_for_each_popup_surface(struct sway_output *output,
261 struct wl_list *layer_surfaces, sway_surface_iterator_func_t iterator, 261 struct wl_list *layer_surfaces, sway_surface_iterator_func_t iterator,
262 void *user_data) { 262 void *user_data) {
263 struct sway_layer_surface *layer_surface; 263 struct sway_layer_surface *layer_surface;
diff --git a/sway/desktop/render.c b/sway/desktop/render.c
index acf503a4..bd85282c 100644
--- a/sway/desktop/render.c
+++ b/sway/desktop/render.c
@@ -171,7 +171,7 @@ static void render_layer_toplevel(struct sway_output *output,
171 .damage = damage, 171 .damage = damage,
172 .alpha = 1.0f, 172 .alpha = 1.0f,
173 }; 173 };
174 output_layer_for_each_surface_toplevel(output, layer_surfaces, 174 output_layer_for_each_toplevel_surface(output, layer_surfaces,
175 render_surface_iterator, &data); 175 render_surface_iterator, &data);
176} 176}
177 177
@@ -181,7 +181,7 @@ static void render_layer_popups(struct sway_output *output,
181 .damage = damage, 181 .damage = damage,
182 .alpha = 1.0f, 182 .alpha = 1.0f,
183 }; 183 };
184 output_layer_for_each_surface_popup(output, layer_surfaces, 184 output_layer_for_each_popup_surface(output, layer_surfaces,
185 render_surface_iterator, &data); 185 render_surface_iterator, &data);
186} 186}
187 187