Code Review
/
staging
/
windowmanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Call event handler only if event-label matches
[staging/windowmanager.git]
/
AFBClient.cpp
diff --git
a/AFBClient.cpp
b/AFBClient.cpp
index
99f22bd
..
cee49ad
100644
(file)
--- a/
AFBClient.cpp
+++ b/
AFBClient.cpp
@@
-403,7
+403,9
@@
void AFBClient::Impl::event(char const *et, char const *label) {
auto i = this->handlers.find(oet.second);
if (i != this->handlers.end()) {
auto i = this->handlers.find(oet.second);
if (i != this->handlers.end()) {
- i->second(label);
+ if (this->labels.find(label) != this->labels.end()) {
+ i->second(label);
+ }
}
}
}
}