mirror of
https://github.com/swaywm/sway.git
synced 2024-11-16 05:03:17 +00:00
sway/input: don't pass possibly invalid modifiers pointer
active_keyboard may be NULL, in which case an invalid pointer could be passed to wlr_input_method_keyboard_grab_v2_send_modifiers. This procedure call is unnecessary since wlroots commit 372a52ec "input method: send modifiers in set_keyboard", so the call can simply be removed. Fixes #6836.
This commit is contained in:
parent
061ffc30ea
commit
d6f279902a
|
@ -77,8 +77,6 @@ static void handle_im_grab_keyboard(struct wl_listener *listener, void *data) {
|
||||||
struct wlr_keyboard *active_keyboard = wlr_seat_get_keyboard(relay->seat->wlr_seat);
|
struct wlr_keyboard *active_keyboard = wlr_seat_get_keyboard(relay->seat->wlr_seat);
|
||||||
wlr_input_method_keyboard_grab_v2_set_keyboard(keyboard_grab,
|
wlr_input_method_keyboard_grab_v2_set_keyboard(keyboard_grab,
|
||||||
active_keyboard);
|
active_keyboard);
|
||||||
wlr_input_method_keyboard_grab_v2_send_modifiers(keyboard_grab,
|
|
||||||
&active_keyboard->modifiers);
|
|
||||||
|
|
||||||
wl_signal_add(&keyboard_grab->events.destroy,
|
wl_signal_add(&keyboard_grab->events.destroy,
|
||||||
&relay->input_method_keyboard_grab_destroy);
|
&relay->input_method_keyboard_grab_destroy);
|
||||||
|
|
Loading…
Reference in a new issue