mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-25 06:05:58 +01:00
xwayland: fix user_event_handler
Don't break and free event as the commont says: wlr-xwayland will free the event.
This commit is contained in:
parent
303f23d7dd
commit
92dabc3a01
1 changed files with 2 additions and 1 deletions
|
@ -1644,7 +1644,8 @@ static int x11_event_handler(int fd, uint32_t mask, void *data) {
|
||||||
|
|
||||||
if (xwm->xwayland->user_event_handler &&
|
if (xwm->xwayland->user_event_handler &&
|
||||||
xwm->xwayland->user_event_handler(xwm, event)) {
|
xwm->xwayland->user_event_handler(xwm, event)) {
|
||||||
break;
|
free(event);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (xwm_handle_selection_event(xwm, event)) {
|
if (xwm_handle_selection_event(xwm, event)) {
|
||||||
|
|
Loading…
Reference in a new issue