diff options
author | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-07-13 11:22:50 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-07-13 11:24:23 +0900 |
commit | fa08aaf93eaaa6f09cbb325d6624b5dfb72fbbdc (patch) | |
tree | 0b09f92ff655287a193cf975dae3a922be320cc1 /src | |
parent | 40ec1cb01662ab653b6b0cfcab782895bb0d3804 (diff) |
Bug fix: Enable screenUpdated and error eventHEADjellyfish_9.99.4jellyfish_9.99.3jellyfish_9.99.2jellyfish_9.99.1jellyfish/9.99.4jellyfish/9.99.3jellyfish/9.99.2jellyfish/9.99.1icefish_8.99.5icefish_8.99.4icefish_8.99.3icefish_8.99.2icefish_8.99.1icefish/8.99.5icefish/8.99.4icefish/8.99.3icefish/8.99.2icefish/8.99.1halibut_8.0.6halibut_8.0.5halibut_8.0.4halibut_8.0.3halibut_8.0.2halibut_8.0.1halibut_8.0.0halibut_7.99.3halibut_7.99.2halibut_7.99.1halibut_7.90.0halibut/8.0.6halibut/8.0.5halibut/8.0.4halibut/8.0.3halibut/8.0.2halibut/8.0.1halibut/8.0.0halibut/7.99.3halibut/7.99.2halibut/7.99.1halibut/7.90.0guppy_6.99.4guppy_6.99.3guppy_6.99.2guppy_6.99.1guppy_6.90.0guppy/6.99.4guppy/6.99.3guppy/6.99.2guppy/6.99.1guppy/6.90.0flounder_5.99.6flounder_5.99.5flounder_5.99.4flounder_5.99.3flounder_5.99.2flounder/5.99.6flounder/5.99.5flounder/5.99.4flounder/5.99.3flounder/5.99.29.99.49.99.39.99.29.99.18.99.58.99.48.99.38.99.28.99.18.0.68.0.58.0.48.0.38.0.28.0.18.0.07.99.37.99.27.99.17.90.06.99.46.99.36.99.26.99.16.90.05.99.65.99.55.99.45.99.35.99.2masterhalibut
This patch fixes the bug that application can't get
the screenUpdated and error events.
Bug-AGL: SPEC-1532
Change-Id: I260179916ea487faf761c40efc473ae415707050
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src')
-rw-r--r-- | src/libwindowmanager.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libwindowmanager.cpp b/src/libwindowmanager.cpp index 02ab965..5f0f5e5 100644 --- a/src/libwindowmanager.cpp +++ b/src/libwindowmanager.cpp @@ -569,7 +569,7 @@ void LibWindowmanager::Impl::set_event_handler(enum EventType et, handler_fun fu } // Set event handler - if (et >= Event_Active && et <= Event_FlushDraw) { + if (et >= Event_Active && et <= Event_Val_Max) { this->handlers[et] = std::move(func); } } @@ -596,6 +596,8 @@ std::pair<bool, LibWindowmanager::EventType> make_event_type(char const *et) { ET("invisible", Invisible); ET("syncdraw", SyncDraw); ET("flushdraw", FlushDraw); + ET("screenUpdated", ScreenUpdated); + ET("error", Error); #undef ET return std::pair<bool, LibWindowmanager::EventType>(false, @@ -686,7 +688,7 @@ void LibWindowmanager::Impl::event(char const *et, json_object *object) { label = json_object_get_string(val); } else { - HMI_ERROR("libwm", "Not found key \"%s\"\n", this->kKeyDrawingName); + i->second(object); return; } |