layers: s/arrange_layers/layers_arrange/

Because we like to start public function names with the name of the
file.

Move prototype from labwc.h to layers.h
This commit is contained in:
Johan Malm 2022-03-02 20:29:29 +00:00
parent 04580fa825
commit 98d5fd483d
5 changed files with 9 additions and 8 deletions

View file

@ -19,7 +19,7 @@
#include "node-descriptor.h"
void
arrange_layers(struct output *output)
layers_arrange(struct output *output)
{
struct wlr_box full_area = { 0 };
wlr_output_effective_resolution(output->wlr_output,
@ -110,7 +110,7 @@ surface_commit_notify(struct wl_listener *listener, void *data)
layer->mapped = layer_surface->mapped;
struct output *output =
output_from_wlr_output(layer->server, wlr_output);
arrange_layers(output);
layers_arrange(output);
}
}
@ -141,7 +141,7 @@ destroy_notify(struct wl_listener *listener, void *data)
wl_list_remove(&layer->output_destroy.link);
struct output *output = output_from_wlr_output(layer->server,
layer->scene_layer_surface->layer_surface->output);
arrange_layers(output);
layers_arrange(output);
}
free(layer);
}
@ -338,7 +338,7 @@ new_layer_surface_notify(struct wl_listener *listener, void *data)
*/
struct wlr_layer_surface_v1_state old_state = layer_surface->current;
layer_surface->current = layer_surface->pending;
arrange_layers(output);
layers_arrange(output);
layer_surface->current = old_state;
}