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
add role to layer::to_json()
[staging/windowmanager.git]
/
src
/
app.cpp
diff --git
a/src/app.cpp
b/src/app.cpp
index
f3c9234
..
72e8c23
100644
(file)
--- a/
src/app.cpp
+++ b/
src/app.cpp
@@
-393,11
+393,6
@@
result<int> App::request_surface(char const *drawing_name) {
auto rname = this->id_alloc[drawing_name];
if (!rname) {
// name does not exist yet, allocate surface id...
auto rname = this->id_alloc[drawing_name];
if (!rname) {
// name does not exist yet, allocate surface id...
- // XXX: how to allocate surface IDs?
- // * allocate by running a counter for each layer?
- // * allocate IDs globally, i.e. do not have layers contain
- // ID ranges (only define the surfaces on the layer by
- // role?)
auto id = int(this->id_alloc(drawing_name));
this->layers.add_surface(id, lid.value());
auto id = int(this->id_alloc(drawing_name));
this->layers.add_surface(id, lid.value());