diff options
author | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-05-29 19:23:55 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-05-29 19:23:55 +0900 |
commit | 495ecf8924c84308aca15ef1b4a158793cdaf8cd (patch) | |
tree | c09d7cad04dc2402cd3f30fb7ce04ba9d014738b /src | |
parent | d9ec718e89e66420d48ff421eef50c0f77f75372 (diff) |
Bug Fix: lookup surfaceID with appid not role
Change-Id: I71c9afe697b9c5516c5645671557c0fe92dfeff6
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src')
-rw-r--r-- | src/app.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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; } |