mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-25 22:25:58 +01:00
wlr_input_device: fix keyboard destruction
After destroying a keyboard input device, seat's listeners could still be pointing to destroyed wlr_input_device signals. This patch makes sure the references are removed while the input device is being destroyed.
This commit is contained in:
parent
d7c027d3e3
commit
2929f0f8dd
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ static void handle_keyboard_repeat_info(struct wl_listener *listener,
|
||||||
static void handle_keyboard_destroy(struct wl_listener *listener, void *data) {
|
static void handle_keyboard_destroy(struct wl_listener *listener, void *data) {
|
||||||
struct wlr_seat_keyboard_state *state =
|
struct wlr_seat_keyboard_state *state =
|
||||||
wl_container_of(listener, state, keyboard_destroy);
|
wl_container_of(listener, state, keyboard_destroy);
|
||||||
state->keyboard = NULL;
|
wlr_seat_set_keyboard(state->seat, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wlr_seat_set_keyboard(struct wlr_seat *seat,
|
void wlr_seat_set_keyboard(struct wlr_seat *seat,
|
||||||
|
|
Loading…
Reference in a new issue