mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
keyboard-group: two NULL keymaps are equal
Previously, creating a keyboard group without any keymap set would
result in an error:
Device keymap does not match keyboard group's
This commit is contained in:
parent
7c05933e51
commit
b1a63bcd84
1 changed files with 3 additions and 0 deletions
|
|
@ -82,6 +82,9 @@ struct wlr_keyboard_group *wlr_keyboard_group_from_wlr_keyboard(
|
|||
}
|
||||
|
||||
static bool keymaps_match(struct xkb_keymap *km1, struct xkb_keymap *km2) {
|
||||
if (!km1 && !km2) {
|
||||
return true;
|
||||
}
|
||||
if (!km1 || !km2) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue