Skip to content

Commit

Permalink
seat: don't send keymap on empty device
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Jun 2, 2024
1 parent 0ebb43c commit 66acdfe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/protocols/core/Seat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 66acdfe

Please sign in to comment.