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:
c4acee9
)
layout: check id_min against lower_bound() result
author
Marcus Fritzsch
<marcus_fritzsch@mentor.com>
Thu, 27 Jul 2017 14:02:00 +0000
(16:02 +0200)
committer
Marcus Fritzsch
<marcus_fritzsch@mentor.com>
Tue, 8 Aug 2017 15:24:00 +0000
(17:24 +0200)
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
src/layout.hpp
patch
|
blob
|
history
diff --git
a/src/layout.hpp
b/src/layout.hpp
index
6c60bde
..
3308cf6
100644
(file)
--- a/
src/layout.hpp
+++ b/
src/layout.hpp
@@
-62,7
+62,9
@@
struct surface_id_to_layer_map {
std::cend(this->mapping), surface_id);
if (i != this->mapping.end()) {
- return std::experimental::optional<int>(i->layer_id);
+ if (i->id_min <= surface_id) {
+ return std::experimental::optional<int>(i->layer_id);
+ }
}
return std::experimental::nullopt;