layers/app: properly remove surfs, deactivate main_surface
[staging/windowmanager.git] / src / layers.hpp
index ada7344..b20d356 100644 (file)
@@ -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;
 };