devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=7733e873fd845a6d21bd4b64a64e43186f5a361a

commit 7733e873fd845a6d21bd4b64a64e43186f5a361a
Author: Chris Michael <cpmich...@osg.samsung.com>
Date:   Fri Dec 11 13:29:36 2015 -0500

    Add function to clear and reload keyboard modifiers
    
    Signed-off-by: Chris Michael <cpmich...@osg.samsung.com>
---
 src/bin/e_comp_wl_input.c | 11 +++++++++++
 src/bin/e_comp_wl_input.h |  2 ++
 2 files changed, 13 insertions(+)

diff --git a/src/bin/e_comp_wl_input.c b/src/bin/e_comp_wl_input.c
index ec9d2e1..79f75d4 100644
--- a/src/bin/e_comp_wl_input.c
+++ b/src/bin/e_comp_wl_input.c
@@ -643,3 +643,14 @@ e_comp_wl_input_touch_check(struct wl_resource *res)
    return wl_resource_instance_of(res, &wl_touch_interface,
                                   &_e_touch_interface);
 }
+
+EINTERN void
+e_comp_wl_input_keyboard_modifers_clear(void)
+{
+   e_comp_wl->kbd.mod_depressed = 0;
+   e_comp_wl->kbd.mod_latched = 0;
+   e_comp_wl->kbd.mod_locked = 0;
+   e_comp_wl->kbd.mod_group = 0;
+
+   e_comp_wl_input_keyboard_modifiers_serialize();
+}
diff --git a/src/bin/e_comp_wl_input.h b/src/bin/e_comp_wl_input.h
index b3300c8..a9bc9d4 100644
--- a/src/bin/e_comp_wl_input.h
+++ b/src/bin/e_comp_wl_input.h
@@ -23,6 +23,8 @@ EINTERN void e_comp_wl_input_keyboard_modifiers_update(void);
 EINTERN void e_comp_wl_input_keyboard_state_update(uint32_t keycode, Eina_Bool 
pressed);
 EINTERN void e_comp_wl_input_keyboard_enter_send(E_Client *client);
 
+EINTERN void e_comp_wl_input_keyboard_modifers_clear(void);
+
 E_API void e_comp_wl_input_pointer_enabled_set(Eina_Bool enabled);
 E_API void e_comp_wl_input_keyboard_enabled_set(Eina_Bool enabled);
 E_API void e_comp_wl_input_touch_enabled_set(Eina_Bool enabled);

-- 


Reply via email to