aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_input_evas
diff options
context:
space:
mode:
authorGwanglim Lee <gl77.lee@samsung.com>2014-04-14 09:38:58 -0400
committerMike Blumenkrantz <zmike@samsung.com>2014-04-14 09:41:43 -0400
commitca443ac1528c9355c1b17b32e9867b05ecc42c62 (patch)
treee07e19f75747070ca5ee76fd6a2085d4bbb67e94 /src/lib/ecore_input_evas
parentEolian: add support for cmake (diff)
downloadefl-ca443ac1528c9355c1b17b32e9867b05ecc42c62.tar.gz
Fixed a problem with e wl server that sent invalid key value to wl client.
Summary: This problem occurred due to xkb_keysym_t value of libxkbcommon by e wl server. e wl server should pass keycode from evdev input device on to wl client. In order that e wl server receives valid keycode Ecore_Event_Key should have an extended data member. This patch should be applied with server side patch. @fix Test Plan: run e wl server -> create wl client -> type keys Reviewers: raster, devilhorns, zmike CC: cedric Differential Revision: https://phab.enlightenment.org/D712
Diffstat (limited to 'src/lib/ecore_input_evas')
-rw-r--r--src/lib/ecore_input_evas/ecore_input_evas.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/lib/ecore_input_evas/ecore_input_evas.c b/src/lib/ecore_input_evas/ecore_input_evas.c
index ef08c48c59..52058624fa 100644
--- a/src/lib/ecore_input_evas/ecore_input_evas.c
+++ b/src/lib/ecore_input_evas/ecore_input_evas.c
@@ -332,9 +332,23 @@ _ecore_event_evas_key(Ecore_Event_Key *e, Ecore_Event_Press press)
if (!lookup) return ECORE_CALLBACK_PASS_ON;
ecore_event_evas_modifier_lock_update(lookup->evas, e->modifiers);
if (press == ECORE_DOWN)
- evas_event_feed_key_down(lookup->evas, e->keyname, e->key, e->string, e->compose, e->timestamp, NULL);
+ evas_event_feed_key_down_with_keycode(lookup->evas,
+ e->keyname,
+ e->key,
+ e->string,
+ e->compose,
+ e->timestamp,
+ e->data,
+ e->keycode);
else
- evas_event_feed_key_up(lookup->evas, e->keyname, e->key, e->string, e->compose, e->timestamp, NULL);
+ evas_event_feed_key_up_with_keycode(lookup->evas,
+ e->keyname,
+ e->key,
+ e->string,
+ e->compose,
+ e->timestamp,
+ e->data,
+ e->keycode);
return ECORE_CALLBACK_PASS_ON;
}