aboutsummaryrefslogtreecommitdiff
path: root/src/imv.c
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2019-08-23 23:34:02 +0100
committerHarry Jeffery <harry@exec64.co.uk>2019-08-23 23:34:02 +0100
commit9e1d6e24a028ec96fb11ba943769764665fb024c (patch)
tree50eaaf19bbff64e6309ebe8c2b1ab1c4b58f3df9 /src/imv.c
parent9850d9c6a2be489a912ff3c98c83eef77198fccc (diff)
downloadimv-9e1d6e24a028ec96fb11ba943769764665fb024c.tar.gz
wl_window: Maintain keyboard modifiers state
Diffstat (limited to 'src/imv.c')
-rw-r--r--src/imv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/imv.c b/src/imv.c
index 6376ee5..269a70a 100644
--- a/src/imv.c
+++ b/src/imv.c
@@ -460,6 +460,12 @@ static void event_handler(void *data, const struct imv_event *e)
case IMV_EVENT_KEYBOARD:
key_handler(imv, e->data.keyboard.scancode, e->data.keyboard. pressed);
break;
+ case IMV_EVENT_KEYBOARD_MODS:
+ imv_keyboard_update_mods(imv->keyboard,
+ e->data.keyboard_mods.depressed,
+ e->data.keyboard_mods.latched,
+ e->data.keyboard_mods.locked);
+ break;
case IMV_EVENT_MOUSE_MOTION:
if (imv_window_get_mouse_button(imv->window, 1)) {
imv_viewport_move(imv->view, e->data.mouse_motion.dx,