mirror of
https://github.com/labwc/labwc.git
synced 2026-03-12 05:33:53 -04:00
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:
parent
04580fa825
commit
98d5fd483d
5 changed files with 9 additions and 8 deletions
|
|
@ -470,8 +470,6 @@ void cursor_finish(struct seat *seat);
|
||||||
void keyboard_init(struct seat *seat);
|
void keyboard_init(struct seat *seat);
|
||||||
void keyboard_finish(struct seat *seat);
|
void keyboard_finish(struct seat *seat);
|
||||||
|
|
||||||
void arrange_layers(struct output *output);
|
|
||||||
|
|
||||||
void seat_init(struct server *server);
|
void seat_init(struct server *server);
|
||||||
void seat_finish(struct server *server);
|
void seat_finish(struct server *server);
|
||||||
void seat_reconfigure(struct server *server);
|
void seat_reconfigure(struct server *server);
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
#include <wlr/types/wlr_layer_shell_v1.h>
|
#include <wlr/types/wlr_layer_shell_v1.h>
|
||||||
|
|
||||||
struct server;
|
struct server;
|
||||||
|
struct output;
|
||||||
|
|
||||||
#define LAB_NR_LAYERS (4)
|
#define LAB_NR_LAYERS (4)
|
||||||
|
|
||||||
|
|
@ -35,4 +36,6 @@ struct lab_layer_popup {
|
||||||
|
|
||||||
void layers_init(struct server *server);
|
void layers_init(struct server *server);
|
||||||
|
|
||||||
|
void layers_arrange(struct output *output);
|
||||||
|
|
||||||
#endif /* __LABWC_LAYERS_H */
|
#endif /* __LABWC_LAYERS_H */
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
#include "node-descriptor.h"
|
#include "node-descriptor.h"
|
||||||
|
|
||||||
void
|
void
|
||||||
arrange_layers(struct output *output)
|
layers_arrange(struct output *output)
|
||||||
{
|
{
|
||||||
struct wlr_box full_area = { 0 };
|
struct wlr_box full_area = { 0 };
|
||||||
wlr_output_effective_resolution(output->wlr_output,
|
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;
|
layer->mapped = layer_surface->mapped;
|
||||||
struct output *output =
|
struct output *output =
|
||||||
output_from_wlr_output(layer->server, wlr_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);
|
wl_list_remove(&layer->output_destroy.link);
|
||||||
struct output *output = output_from_wlr_output(layer->server,
|
struct output *output = output_from_wlr_output(layer->server,
|
||||||
layer->scene_layer_surface->layer_surface->output);
|
layer->scene_layer_surface->layer_surface->output);
|
||||||
arrange_layers(output);
|
layers_arrange(output);
|
||||||
}
|
}
|
||||||
free(layer);
|
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;
|
struct wlr_layer_surface_v1_state old_state = layer_surface->current;
|
||||||
layer_surface->current = layer_surface->pending;
|
layer_surface->current = layer_surface->pending;
|
||||||
arrange_layers(output);
|
layers_arrange(output);
|
||||||
layer_surface->current = old_state;
|
layer_surface->current = old_state;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -322,7 +322,7 @@ handle_output_layout_change(struct wl_listener *listener, void *data)
|
||||||
|
|
||||||
wl_list_for_each(output, &server->outputs, link) {
|
wl_list_for_each(output, &server->outputs, link) {
|
||||||
if (output) {
|
if (output) {
|
||||||
arrange_layers(output);
|
layers_arrange(output);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
output_update_for_layout_change(server);
|
output_update_for_layout_change(server);
|
||||||
|
|
|
||||||
|
|
@ -120,7 +120,7 @@ seat_disinhibit_input(struct seat *seat)
|
||||||
*/
|
*/
|
||||||
struct output *output;
|
struct output *output;
|
||||||
wl_list_for_each(output, &seat->server->outputs, link) {
|
wl_list_for_each(output, &seat->server->outputs, link) {
|
||||||
arrange_layers(output);
|
layers_arrange(output);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue