From 92dabc3a01c7963e32667453107b46c6480f7d4b Mon Sep 17 00:00:00 2001 From: mfk530 Date: Fri, 17 Nov 2023 02:33:18 +0000 Subject: [PATCH] xwayland: fix user_event_handler Don't break and free event as the commont says: wlr-xwayland will free the event. --- xwayland/xwm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xwayland/xwm.c b/xwayland/xwm.c index db4a8c0fa..2c437e839 100644 --- a/xwayland/xwm.c +++ b/xwayland/xwm.c @@ -1644,7 +1644,8 @@ static int x11_event_handler(int fd, uint32_t mask, void *data) { if (xwm->xwayland->user_event_handler && xwm->xwayland->user_event_handler(xwm, event)) { - break; + free(event); + continue; } if (xwm_handle_selection_event(xwm, event)) {