aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/input/keyboard.h
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-07-17 17:12:20 -0400
committerLibravatar Simon Ser <contact@emersion.fr>2019-07-23 20:45:46 +0300
commit6effca7b61e87c7d17885d007d94e556a0137651 (patch)
tree686cc1e219d8236f8c9864c9992b3cb6b44c9583 /include/sway/input/keyboard.h
parentinput_cmd_xkb_switch_layout: support input types (diff)
downloadsway-6effca7b61e87c7d17885d007d94e556a0137651.tar.gz
sway-6effca7b61e87c7d17885d007d94e556a0137651.tar.zst
sway-6effca7b61e87c7d17885d007d94e556a0137651.zip
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
Diffstat (limited to 'include/sway/input/keyboard.h')
-rw-r--r--include/sway/input/keyboard.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sway/input/keyboard.h b/include/sway/input/keyboard.h
index 90214af9..1ff63c94 100644
--- a/include/sway/input/keyboard.h
+++ b/include/sway/input/keyboard.h
@@ -52,6 +52,7 @@ struct sway_keyboard {
52 struct sway_seat_device *seat_device; 52 struct sway_seat_device *seat_device;
53 53
54 struct xkb_keymap *keymap; 54 struct xkb_keymap *keymap;
55 xkb_layout_index_t effective_layout;
55 56
56 struct wl_listener keyboard_key; 57 struct wl_listener keyboard_key;
57 struct wl_listener keyboard_modifiers; 58 struct wl_listener keyboard_modifiers;