summaryrefslogtreecommitdiffstats
path: root/src/layers.hpp
diff options
context:
space:
mode:
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;
};