summaryrefslogtreecommitdiff
path: root/src/lib/elput/elput_evdev.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-07-10 14:27:27 -0400
committerChris Michael <cp.michael@samsung.com>2017-07-10 14:27:27 -0400
commit1b97abae4921e40471cf5b7b216e4b9fc9ff57ad (patch)
tree8e2f45ea7deee1e3320be26d05fab8fcef4e6d7c /src/lib/elput/elput_evdev.c
parent8fdb4e0d8deaa8fe0802047d642ca20e8ef90abb (diff)
elput: Update modifers for caps lock
Small patch to fix issue of not setting caps_lock modifier. As we lookup this modifier index when creating keyboard info, we should be testing for it and setting seat->modifiers accordingly. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/elput/elput_evdev.c')
-rw-r--r--src/lib/elput/elput_evdev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elput/elput_evdev.c b/src/lib/elput/elput_evdev.c
index b041bb6785..454b4a85de 100644
--- a/src/lib/elput/elput_evdev.c
+++ b/src/lib/elput/elput_evdev.c
@@ -80,6 +80,8 @@ _keyboard_modifiers_update(Elput_Keyboard *kbd, Elput_Seat *seat)
80 seat->modifiers |= ECORE_EVENT_MODIFIER_WIN; 80 seat->modifiers |= ECORE_EVENT_MODIFIER_WIN;
81 if (mask & kbd->info->mods.altgr) 81 if (mask & kbd->info->mods.altgr)
82 seat->modifiers |= ECORE_EVENT_MODIFIER_ALTGR; 82 seat->modifiers |= ECORE_EVENT_MODIFIER_ALTGR;
83 if (mask & kbd->info->mods.caps)
84 seat->modifiers |= ECORE_EVENT_MODIFIER_CAPS;
83 85
84 if (xkb_state_led_index_is_active(kbd->state, kbd->info->leds.num)) 86 if (xkb_state_led_index_is_active(kbd->state, kbd->info->leds.num))
85 leds |= ELPUT_LED_NUM; 87 leds |= ELPUT_LED_NUM;