diff options
author | emersion <contact@emersion.fr> | 2017-10-03 08:40:10 +0200 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-10-03 08:46:11 +0200 |
commit | d3d9aca40cfccf7f3d03a3111f732c884aab8766 (patch) | |
tree | adebad0e5cbac1beba9a0de6a9873fca8bdc0b03 /backend | |
parent | 3a8fdebaaa819f7b27b51e507cccff638b4939ae (diff) | |
download | wlroots-d3d9aca40cfccf7f3d03a3111f732c884aab8766.tar.xz |
Add modifiers support in wayland backend, parse modifiers in rootston config
Diffstat (limited to 'backend')
-rw-r--r-- | backend/wayland/wl_seat.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/wayland/wl_seat.c b/backend/wayland/wl_seat.c index ba3feb8d..44ce6028 100644 --- a/backend/wayland/wl_seat.c +++ b/backend/wayland/wl_seat.c @@ -155,7 +155,11 @@ static void keyboard_handle_key(void *data, struct wl_keyboard *wl_keyboard, static void keyboard_handle_modifiers(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, uint32_t mods_depressed, uint32_t mods_latched, uint32_t mods_locked, uint32_t group) { + struct wlr_input_device *dev = data; + assert(dev && dev->keyboard); + wlr_keyboard_update_modifiers(dev->keyboard, mods_depressed, mods_latched, + mods_locked, group); } static void keyboard_handle_repeat_info(void *data, struct wl_keyboard *wl_keyboard, |