ipc: add an input event

This adds an ipc event related to input devices. Currently the
following changes are supported:
- added: when an input device becomes available
- removed: when an input device is no longer available
- xkb_keymap_changed: (keyboards only) the keymap changed
- xkb_layout_changed: (keyboards only) the effective layout changed
This commit is contained in:
Brian Ashworth 2019-07-17 17:12:20 -04:00 committed by Simon Ser
parent 36aa67e549
commit 6effca7b61
7 changed files with 107 additions and 0 deletions

View file

@ -34,6 +34,7 @@ enum ipc_command_type {
// sway-specific event types
IPC_EVENT_BAR_STATE_UPDATE = ((1<<31) | 20),
IPC_EVENT_INPUT = ((1<<31) | 21),
};
#endif