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
app/layers: consolidate signed/unsigned usage
[staging/windowmanager.git]
/
src
/
layers.hpp
diff --git
a/src/layers.hpp
b/src/layers.hpp
index
0601614
..
ee32054
100644
(file)
--- a/
src/layers.hpp
+++ b/
src/layers.hpp
@@
-71,9
+71,9
@@
struct layer_map {
using json = nlohmann::json;
using storage_type = std::set<struct layer>;
using json = nlohmann::json;
using storage_type = std::set<struct layer>;
- using layers_type = std::vector<u
nsigned in
t>;
+ using layers_type = std::vector<u
int32_
t>;
using role_to_layer_map = std::vector<std::pair<std::string, int>>;
using role_to_layer_map = std::vector<std::pair<std::string, int>>;
- using addsurf_layer_map = std::map<
unsigned, unsigned
>;
+ using addsurf_layer_map = std::map<
int, int
>;
// XXX: we also will need a layer_id to layer map, perhaps
// make this the primary map, and the surface_id->layer a
// XXX: we also will need a layer_id to layer map, perhaps
// make this the primary map, and the surface_id->layer a
@@
-100,7
+100,7
@@
struct layer_map {
return this->layers.size();
}
return this->layers.size();
}
- void add_surface(
unsigned surface_id, unsigned
layer_id) {
+ void add_surface(
int surface_id, int
layer_id) {
this->surfaces[surface_id] = layer_id;
}
this->surfaces[surface_id] = layer_id;
}