summaryrefslogtreecommitdiff
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
parente4ab76c39765891eca54a67a4d5b880498671c05 (diff)
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)
332 if (!lookup) return ECORE_CALLBACK_PASS_ON; 332 if (!lookup) return ECORE_CALLBACK_PASS_ON;
333 ecore_event_evas_modifier_lock_update(lookup->evas, e->modifiers); 333 ecore_event_evas_modifier_lock_update(lookup->evas, e->modifiers);
334 if (press == ECORE_DOWN) 334 if (press == ECORE_DOWN)
335 evas_event_feed_key_down(lookup->evas, e->keyname, e->key, e->string, e->compose, e->timestamp, NULL); 335 evas_event_feed_key_down_with_keycode(lookup->evas,
336 e->keyname,
337 e->key,
338 e->string,
339 e->compose,
340 e->timestamp,
341 e->data,
342 e->keycode);
336 else 343 else
337 evas_event_feed_key_up(lookup->evas, e->keyname, e->key, e->string, e->compose, e->timestamp, NULL); 344 evas_event_feed_key_up_with_keycode(lookup->evas,
345 e->keyname,
346 e->key,
347 e->string,
348 e->compose,
349 e->timestamp,
350 e->data,
351 e->keycode);
338 return ECORE_CALLBACK_PASS_ON; 352 return ECORE_CALLBACK_PASS_ON;
339} 353}
340 354