From: Kazumasa Mitsunari Date: Mon, 23 Oct 2017 08:28:13 +0000 (+0900) Subject: Change the sequence how signals are emitted X-Git-Tag: 4.99.2~13^2 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=6adb64ee4760b33cf212f03d3190100d37556a9a;p=apps%2Fagl-service-windowmanager-2017.git Change the sequence how signals are emitted According to https://wiki.automotivelinux.org/_media/agl-hmi-fw_windowmanager_spec_v0.1.0.pdf, the visible event is emitted first Bug-AGL : SPEC-987 Change-Id: I5b5fa669b31b9a5283ccc91702064207a85d838c Signed-off-by: Kazumasa Mitsunari --- diff --git a/src/app.cpp b/src/app.cpp index 75df8d7..8aa7547 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -639,8 +639,8 @@ void App::activate(int id) { this->controller->surfaces[id]->set_visibility(1); char const *label = this->lookup_name(id).value_or("unknown-name").c_str(); - this->emit_activated(label); this->emit_visible(label); + this->emit_activated(label); } }