summaryrefslogtreecommitdiffstats
path: root/src/layers.hpp
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-12 11:29:38 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-12 11:29:38 +0200
commitf8e49ab7a90503ff791e264d61d5b658b0b4fad0 (patch)
treec17694a47bcfb7c4307bee1d6eeeac6f535ab217 /src/layers.hpp
parent260b142249baa6cbd9147473384d40f83f7db61e (diff)
layers/app: properly remove surfs, deactivate main_surface
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/layers.hpp')
-rw-r--r--src/layers.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/layers.hpp b/src/layers.hpp
index ada7344..b20d356 100644
--- a/src/layers.hpp
+++ b/src/layers.hpp
@@ -114,6 +114,10 @@ struct layer_map {
this->surfaces[surface_id] = layer_id;
}
+ void remove_surface(int surface_id) {
+ this->surfaces.erase(surface_id);
+ }
+
json to_json() const;
};