From 495ecf8924c84308aca15ef1b4a158793cdaf8cd Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Tue, 29 May 2018 19:23:55 +0900 Subject: Bug Fix: lookup surfaceID with appid not role Change-Id: I71c9afe697b9c5516c5645671557c0fe92dfeff6 Signed-off-by: Kazumasa Mitsunari --- src/app.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/app.cpp b/src/app.cpp index 20b80ae..0bdae76 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -440,7 +440,7 @@ bool App::lm_release(const struct WMAction &action) { //auto const &surface_id = this->lookup_id(drawing_name); unsigned req_num = app_list.currentSequenceNumber(); - auto const &surface_id = this->lookup_id(action.appid.c_str()); + auto const &surface_id = this->lookup_id(action.role.c_str()); if (!surface_id) { HMI_SEQ_ERROR(req_num, "Surface does not exist"); @@ -625,9 +625,12 @@ bool App::do_transition(unsigned req_num) if(!ret){ //this->emit_error(request_seq, 0 /*error_num*/, "error happens"); // test } - if (ret && sync_draw_happen){ + else if (ret && sync_draw_happen){ this->set_timer(); } + else{ + app_list.removeRequest(req_num); // HACK!!! + } return ret; } -- cgit 1.2.3-korg