Code Review
/
staging
/
windowmanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
e0cc310
)
App: emit activated and deactivated events
author
Marcus Fritzsch
<marcus_fritzsch@mentor.com>
Mon, 4 Sep 2017 15:56:38 +0000
(17:56 +0200)
committer
Marcus Fritzsch
<marcus_fritzsch@mentor.com>
Mon, 4 Sep 2017 15:56:38 +0000
(17:56 +0200)
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
src/app.cpp
patch
|
blob
|
history
diff --git
a/src/app.cpp
b/src/app.cpp
index
6a3e2e6
..
89b3f29
100644
(file)
--- 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()) {