added empty functions for events
This commit is contained in:
parent
3de9bcea6b
commit
5ae0450e28
1 changed files with 14 additions and 0 deletions
14
wayland.c
14
wayland.c
|
|
@ -49,9 +49,17 @@ static void xdg_toplevel_close(void *data, struct xdg_toplevel *xdg_toplevel) {
|
|||
state->running = 0;
|
||||
}
|
||||
|
||||
void xdg_toplevel_configure_bounds(void *data, struct xdg_toplevel *xdg_toplevel, int32_t w, int32_t h) {
|
||||
}
|
||||
|
||||
void xdg_toplevel_wm_capabilities(void *data, struct xdg_toplevel *xdg_toplevel, struct wl_array *capabilities) {
|
||||
}
|
||||
|
||||
static const struct xdg_toplevel_listener xdg_toplevel_listener = {
|
||||
.configure = xdg_toplevel_configure,
|
||||
.close = xdg_toplevel_close,
|
||||
.configure_bounds = xdg_toplevel_configure_bounds,
|
||||
.wm_capabilities = xdg_toplevel_wm_capabilities,
|
||||
};
|
||||
|
||||
static void zwlr_layer_surface_v1_configure(void *data, struct zwlr_layer_surface_v1 *zwlr_layer_surface_v1, uint32_t serial, uint32_t width, uint32_t height) {
|
||||
|
|
@ -62,8 +70,14 @@ static void zwlr_layer_surface_v1_configure(void *data, struct zwlr_layer_surfac
|
|||
zwlr_layer_surface_v1_ack_configure(zwlr_layer_surface_v1, serial);
|
||||
}
|
||||
|
||||
static void zwlr_layer_surface_v1_closed(void *data, struct zwlr_layer_surface_v1 * zwlr_layer_surface_v1) {
|
||||
struct client_state *state = data;
|
||||
state->running = 0;
|
||||
}
|
||||
|
||||
static const struct zwlr_layer_surface_v1_listener zwlr_layer_surface_v1_listener = {
|
||||
.configure = zwlr_layer_surface_v1_configure,
|
||||
.closed = zwlr_layer_surface_v1_closed,
|
||||
};
|
||||
|
||||
static void registry_handle_global(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue