diff options
author | mfk530 <mfk530@hotmail.com> | 2023-11-17 02:33:18 +0000 |
---|---|---|
committer | mfk530 <mfk530@hotmail.com> | 2023-11-17 02:33:18 +0000 |
commit | 92dabc3a01c7963e32667453107b46c6480f7d4b (patch) | |
tree | 45f60798dd5d8dec4444e05fba0e38da37dc4055 /xwayland/xwm.c | |
parent | 303f23d7dddd028655b82766c042dcde17cbdebe (diff) |
xwayland: fix user_event_handler
Don't break and free event as the commont says:
wlr-xwayland will free the event.
Diffstat (limited to 'xwayland/xwm.c')
-rw-r--r-- | xwayland/xwm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c index db4a8c0f..2c437e83 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)) { |