mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
wlr_keyboard: don't emit key event for duplicated keycodes
This fixes the memory leak in wlr_keyboard_group.keys. The leak happened because wlr_keyboard.keycodes never contains duplicated keycodes while wlr_keyboard_group.keys can, so calling wlr_keyboard_finish() for all the wlr_keyboards in wlr_keyboard_group doesn't always free all the keys in wlr_keyboard_group.keys.
This commit is contained in:
parent
c0d4d7217b
commit
e21899037a
2 changed files with 8 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#include <wlr/types/wlr_keyboard.h>
|
||||
|
||||
void keyboard_key_update(struct wlr_keyboard *keyboard,
|
||||
bool keyboard_key_update(struct wlr_keyboard *keyboard,
|
||||
struct wlr_keyboard_key_event *event);
|
||||
|
||||
bool keyboard_modifier_update(struct wlr_keyboard *keyboard);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue