summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-04 17:56:38 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-04 17:56:38 +0200
commit304210e597abbc99117b1db03b96edf89c4069f6 (patch)
tree87160952f85f9d47a283bbada7ea57db56efc178 /src
parente0cc310d3f9b6a2a005c5dd3d3adf6bb16bd8277 (diff)
App: emit activated and deactivated events
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src')
-rw-r--r--src/app.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app.cpp b/src/app.cpp
index 6a3e2e6..89b3f29 100644
--- a/src/app.cpp
+++ b/src/app.cpp
@@ -406,6 +406,8 @@ char const *App::activate_surface(char const *drawing_name) {
/// // XXX: I am not sure I even need 5 elements...
/// this->last_active.resize(std::min(int(this->last_active.size()), 5));
+ this->emit_activated(drawing_name);
+
// no error
return nullptr;
}
@@ -443,6 +445,8 @@ char const *App::deactivate_surface(char const *drawing_name) {
return "Cannot deactivate surface (not active)";
}
+ this->emit_deactivated(drawing_name);
+
this->last_active.erase(is);
if (! this->last_active.empty()) {