diff --git a/include/wlr/xwayland/xwayland.h b/include/wlr/xwayland/xwayland.h index b38cc74f2..fb8bca08d 100644 --- a/include/wlr/xwayland/xwayland.h +++ b/include/wlr/xwayland/xwayland.h @@ -57,11 +57,11 @@ struct wlr_xwayland { } events; /** - * Add a custom event handler to xwayland. Return 1 if the event was - * handled or 0 to use the default wlr-xwayland handler. wlr-xwayland will + * Add a custom event handler to xwayland. Return true if the event was + * handled or false to use the default wlr-xwayland handler. wlr-xwayland will * free the event. */ - int (*user_event_handler)(struct wlr_xwm *xwm, xcb_generic_event_t *event); + bool (*user_event_handler)(struct wlr_xwayland *wlr_xwayland, xcb_generic_event_t *event); void *data; diff --git a/xwayland/xwm.c b/xwayland/xwm.c index d0fca4831..d16185d43 100644 --- a/xwayland/xwm.c +++ b/xwayland/xwm.c @@ -1747,7 +1747,7 @@ static int x11_event_handler(int fd, uint32_t mask, void *data) { count++; if (xwm->xwayland->user_event_handler && - xwm->xwayland->user_event_handler(xwm, event)) { + xwm->xwayland->user_event_handler(xwm->xwayland, event)) { free(event); continue; }