pointer: release pressed buttons on destroy

This commit is contained in:
Kirill Primak 2024-08-14 20:23:45 +03:00 committed by Alexander Orzechowski
parent c752270be7
commit 56d69320c7
8 changed files with 38 additions and 6 deletions

View file

@ -36,7 +36,7 @@ static void send_button_event(struct wlr_x11_output *output, uint32_t key,
.button = key,
.state = st,
};
wl_signal_emit_mutable(&output->pointer.events.button, &ev);
wlr_pointer_notify_button(&output->pointer, &ev);
wl_signal_emit_mutable(&output->pointer.events.frame, &output->pointer);
}