Merge "Change the sequence how signals are emitted"
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tue, 31 Oct 2017 15:20:32 +0000 (15:20 +0000)
committerGerrit Code Review <gerrit@automotivelinux.org>
Tue, 31 Oct 2017 15:20:32 +0000 (15:20 +0000)
src/app.cpp

index 75df8d7..8aa7547 100644 (file)
@@ -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);
    }
 }