summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJengHyun Kang <jhyuni.kang@samsung.com>2016-08-17 10:22:37 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-08-17 10:22:37 -0400
commitdca5cc2fa05d713621c673e0f7f6766b2c5de7a0 (patch)
tree2843b93603abb9f48f1d3169578a029fa39ef053
parent729b2d22d66dffef69b5419eaaee738aecd53eee (diff)
e_comp_wl: break from meaningless loop
Summary: kbd.keys are only added from e_comp_wl_key_down(). And in that function, duplicated keys are not add in the list. So only one key is going to be in the list. Test Plan: Watch kbd.keys list during key press / release. Reviewers: raster, devilhorns, zmike!, ManMower Reviewed By: ManMower Subscribers: duna.oh, input.hacker, cedric Differential Revision: https://phab.enlightenment.org/D4230
-rw-r--r--src/bin/e_comp_wl.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index 4507759f6..79689d28d 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -3235,7 +3235,13 @@ e_comp_wl_key_up(Ecore_Event_Key *ev)
3235 3235
3236 end = (uint32_t *)e_comp_wl->kbd.keys.data + (e_comp_wl->kbd.keys.size / sizeof(*k)); 3236 end = (uint32_t *)e_comp_wl->kbd.keys.data + (e_comp_wl->kbd.keys.size / sizeof(*k));
3237 for (k = e_comp_wl->kbd.keys.data; k < end; k++) 3237 for (k = e_comp_wl->kbd.keys.data; k < end; k++)
3238 if (*k == keycode) *k = *--end; 3238 {
3239 if (*k == keycode)
3240 {
3241 *k = *--end;
3242 break;
3243 }
3244 }
3239 3245
3240 e_comp_wl->kbd.keys.size = 3246 e_comp_wl->kbd.keys.size =
3241 (const char *)end - (const char *)e_comp_wl->kbd.keys.data; 3247 (const char *)end - (const char *)e_comp_wl->kbd.keys.data;