diff options
author | Emre Ucan <eucan@de.adit-jv.com> | 2015-05-18 09:46:32 +0200 |
---|---|---|
committer | Nobuhiko Tanibata <nobuhiko_tanibata@xddp.denso.co.jp> | 2015-06-15 16:23:31 +0900 |
commit | 9ef8a047a86ebc4fff06acec5cf4bc8d3e60b845 (patch) | |
tree | 417d7dcf0a15d215e51599d814d4e751eb51bd52 | |
parent | c8ad4b1467031e503b0abdf8e88f8b3c44c7b158 (diff) | |
download | wayland-ivi-extension-9ef8a047a86ebc4fff06acec5cf4bc8d3e60b845.tar.gz |
ilmInput: return ILM_FAILED, if a surface not found by ilm_setInputFocus
Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
-rw-r--r-- | ivi-input-api/ilmInput/src/ilm_input.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ivi-input-api/ilmInput/src/ilm_input.c b/ivi-input-api/ilmInput/src/ilm_input.c index 9e4795b..535f0a3 100644 --- a/ivi-input-api/ilmInput/src/ilm_input.c +++ b/ivi-input-api/ilmInput/src/ilm_input.c @@ -256,6 +256,7 @@ ILM_EXPORT ilmErrorTypes ilm_setInputFocus(t_ilm_surface *surfaceIDs, t_ilm_uint num_surfaces, ilmInputDevice bitmask, t_ilm_bool is_set) { + ilmErrorTypes returnValue = ILM_FAILED; struct ilm_control_context *ctx; int i; @@ -285,15 +286,16 @@ ilm_setInputFocus(t_ilm_surface *surfaceIDs, t_ilm_uint num_surfaces, if (!found_surface) { fprintf(stderr, "Surface %d was not found\n", surfaceIDs[i]); - continue; + break; } ivi_input_set_input_focus(ctx->wl.input_controller, ctx_surf->id_surface, bitmask, is_set); + returnValue = ILM_SUCCESS; } release_instance(); - return ILM_SUCCESS; + return returnValue; } ILM_EXPORT ilmErrorTypes |