mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 05:05:59 +01:00
seat: don't send keymap on empty device
This commit is contained in:
parent
0ebb43c1a3
commit
66acdfe2ad
1 changed files with 3 additions and 0 deletions
|
@ -213,6 +213,9 @@ bool CWLKeyboardResource::good() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void CWLKeyboardResource::sendKeymap(SP<IKeyboard> keyboard) {
|
void CWLKeyboardResource::sendKeymap(SP<IKeyboard> keyboard) {
|
||||||
|
if (!keyboard)
|
||||||
|
return;
|
||||||
|
|
||||||
wl_keyboard_keymap_format format = keyboard ? WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1 : WL_KEYBOARD_KEYMAP_FORMAT_NO_KEYMAP;
|
wl_keyboard_keymap_format format = keyboard ? WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1 : WL_KEYBOARD_KEYMAP_FORMAT_NO_KEYMAP;
|
||||||
int fd;
|
int fd;
|
||||||
uint32_t size;
|
uint32_t size;
|
||||||
|
|
Loading…
Reference in a new issue