summaryrefslogtreecommitdiffstats
path: root/src/libwindowmanager.cpp
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-07-13 11:22:50 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-07-13 11:24:23 +0900
commitfa08aaf93eaaa6f09cbb325d6624b5dfb72fbbdc (patch)
tree0b09f92ff655287a193cf975dae3a922be320cc1 /src/libwindowmanager.cpp
parent40ec1cb01662ab653b6b0cfcab782895bb0d3804 (diff)
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/libwindowmanager.cpp')
-rw-r--r--src/libwindowmanager.cpp6
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;
}