switch to meson build + refactor code to remove compile warning

This commit is contained in:
DanyLE
2025-07-05 20:33:49 +02:00
parent 13543e1382
commit 0a77ed8d91
13 changed files with 128 additions and 66 deletions

View File

@ -53,6 +53,7 @@ static void process_keyboard_interactivity(struct diyac_layer_surface *layer)
}
static void layer_surface_commit(struct wl_listener *listener, void *data)
{
(void) data;
struct diyac_layer_surface *layer =
wl_container_of(listener, layer, surface_commit);
struct wlr_layer_surface_v1 *layer_surface =
@ -94,6 +95,7 @@ static void layer_surface_commit(struct wl_listener *listener, void *data)
}
static void layer_surface_unmap(struct wl_listener *listener, void *data)
{
(void) data;
struct diyac_layer_surface *layer = wl_container_of(listener, layer, unmap);
struct wlr_layer_surface_v1 *layer_surface =
layer->scene_layer_surface->layer_surface;
@ -109,6 +111,7 @@ static void layer_surface_unmap(struct wl_listener *listener, void *data)
static void layer_surface_map(struct wl_listener *listener, void *data)
{
(void) data;
struct diyac_layer_surface *layer = wl_container_of(listener, layer, map);
struct wlr_output *wlr_output =
layer->scene_layer_surface->layer_surface->output;
@ -127,6 +130,7 @@ static void layer_surface_map(struct wl_listener *listener, void *data)
}
static void layer_surface_node_destroy(struct wl_listener *listener, void *data)
{
(void) data;
struct diyac_layer_surface *layer =
wl_container_of(listener, layer, node_destroy);
@ -142,6 +146,7 @@ static void layer_surface_node_destroy(struct wl_listener *listener, void *data)
}
static void layer_surface_output_destroy(struct wl_listener *listener, void *data)
{
(void) data;
struct diyac_layer_surface *layer =
wl_container_of(listener, layer, output_destroy);
layer->scene_layer_surface->layer_surface->output = NULL;
@ -150,6 +155,7 @@ static void layer_surface_output_destroy(struct wl_listener *listener, void *dat
static void
popup_handle_destroy(struct wl_listener *listener, void *data)
{
(void)data;
struct diyac_popup *popup = wl_container_of(listener, popup, destroy);
wl_list_remove(&popup->destroy.link);
wl_list_remove(&popup->new_popup.link);
@ -165,6 +171,7 @@ popup_handle_destroy(struct wl_listener *listener, void *data)
static void popup_handle_commit(struct wl_listener *listener, void *data)
{
(void)data;
struct diyac_popup *popup =
wl_container_of(listener, popup, commit);
struct wlr_box popup_box ;