summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}