mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-17 04:53:48 -07:00
seat: don't send keymap on empty device
This commit is contained in:
@@ -213,6 +213,9 @@ bool CWLKeyboardResource::good() {
|
||||
}
|
||||
|
||||
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;
|
||||
int fd;
|
||||
uint32_t size;
|
||||
|
Reference in New Issue
Block a user