switch to meson build + refactor code to remove compile warning
This commit is contained in:
7
layer.c
7
layer.c
@ -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 ;
|
||||
|
Reference in New Issue
Block a user