devilhorns pushed a commit to branch master.
commit ccb72c38ca3197519094ad3fbd4510cd1609cde1
Author: Chris Michael <[email protected]>
Date: Tue Aug 20 09:55:43 2013 +0100
Remove call to ecore_x function for getting keycode.
Signed-off-by: Chris Michael <[email protected]>
---
src/modules/wl_desktop_shell/e_mod_main.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/modules/wl_desktop_shell/e_mod_main.c
b/src/modules/wl_desktop_shell/e_mod_main.c
index 1bf6658..5015398 100644
--- a/src/modules/wl_desktop_shell/e_mod_main.c
+++ b/src/modules/wl_desktop_shell/e_mod_main.c
@@ -1433,7 +1433,7 @@ _e_wl_shell_shell_surface_cb_key_down(void *data,
Evas_Object *obj EINA_UNUSED,
struct wl_keyboard_grab *grab;
unsigned int serial = 0, key = 0;
unsigned int *end, *k;
-
+ xkb_keysym_t sym = XKB_KEY_NoSymbol;
ev = event;
/* try to cast data to our surface structure */
@@ -1454,7 +1454,11 @@ _e_wl_shell_shell_surface_cb_key_down(void *data,
Evas_Object *obj EINA_UNUSED,
if (_e_wl_comp->ping_cb) _e_wl_comp->ping_cb(ews, serial);
/* get the keycode for this key from X */
- key = ecore_x_keysym_keycode_get(ev->keyname) - 8;
+ sym = xkb_keysym_from_name(ev->keyname, 0);
+ if (!sym)
+ sym = xkb_keysym_from_name(ev->keyname, XKB_KEYSYM_CASE_INSENSITIVE);
+
+ key = sym - 8;
/* update the keyboards grab properties */
kbd->grab_key = key;
--
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk