mirror of
https://github.com/jjsullivan5196/wvkbd.git
synced 2025-06-04 05:04:23 +02:00
implemented a stub wl_surface_leave
This fixes "listener function for opcode 1 of wl_surface is NULL" error in wayfire 0.8.0 Ref: https://github.com/jjsullivan5196/wvkbd/issues/52
This commit is contained in:
parent
927918ccc5
commit
77c6cf4fe6
9
main.c
9
main.c
@ -115,6 +115,8 @@ static void seat_handle_name(void *data, struct wl_seat *wl_seat,
|
|||||||
|
|
||||||
static void wl_surface_enter(void *data, struct wl_surface *wl_surface,
|
static void wl_surface_enter(void *data, struct wl_surface *wl_surface,
|
||||||
struct wl_output *wl_output);
|
struct wl_output *wl_output);
|
||||||
|
static void wl_surface_leave(void *data, struct wl_surface *wl_surface,
|
||||||
|
struct wl_output *wl_output);
|
||||||
|
|
||||||
static void handle_global(void *data, struct wl_registry *registry,
|
static void handle_global(void *data, struct wl_registry *registry,
|
||||||
uint32_t name, const char *interface,
|
uint32_t name, const char *interface,
|
||||||
@ -155,6 +157,7 @@ static const struct wl_seat_listener seat_listener = {
|
|||||||
|
|
||||||
static const struct wl_surface_listener surface_listener = {
|
static const struct wl_surface_listener surface_listener = {
|
||||||
.enter = wl_surface_enter,
|
.enter = wl_surface_enter,
|
||||||
|
.leave = wl_surface_leave,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct wl_registry_listener registry_listener = {
|
static const struct wl_registry_listener registry_listener = {
|
||||||
@ -357,6 +360,12 @@ wl_surface_enter(void *data, struct wl_surface *wl_surface,
|
|||||||
flip_landscape();
|
flip_landscape();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
wl_surface_leave(void *data, struct wl_surface *wl_surface,
|
||||||
|
struct wl_output *wl_output) {
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
display_handle_geometry(void *data, struct wl_output *wl_output, int x, int y,
|
display_handle_geometry(void *data, struct wl_output *wl_output, int x, int y,
|
||||||
int physical_width, int physical_height, int subpixel,
|
int physical_width, int physical_height, int subpixel,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user