summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2015-04-27 12:56:41 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2015-04-27 12:57:35 -0400
commit1361775ddffeeadfeba1a7cd399e60ac449cc076 (patch)
treed286168ae97c23398f57c8694a180e1a840a681e /src/lib/ecore_wayland
parent259c2e53c53ba19420d65790579a17aec4057a34 (diff)
ecore-wl: reject key events which do not correlate to a valid keysym
Diffstat (limited to 'src/lib/ecore_wayland')
-rw-r--r--src/lib/ecore_wayland/ecore_wl_input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_input.c b/src/lib/ecore_wayland/ecore_wl_input.c
index 6a873e0..1792d7f 100644
--- a/src/lib/ecore_wayland/ecore_wl_input.c
+++ b/src/lib/ecore_wayland/ecore_wl_input.c
@@ -778,6 +778,8 @@ _ecore_wl_input_cb_keyboard_key(void *data, struct wl_keyboard *keyboard EINA_UN
778 778
779 /* get the keysym for this key code */ 779 /* get the keysym for this key code */
780 nsyms = xkb_key_get_syms(input->xkb.state, code, &syms); 780 nsyms = xkb_key_get_syms(input->xkb.state, code, &syms);
781 /* no valid keysym available: reject */
782 if (!nsyms) return;
781 if (nsyms == 1) sym = syms[0]; 783 if (nsyms == 1) sym = syms[0];
782 784
783 /* get the name of this keysym */ 785 /* get the name of this keysym */