diff options
Diffstat (limited to 'src/wm_layer.hpp')
-rw-r--r-- | src/wm_layer.hpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/wm_layer.hpp b/src/wm_layer.hpp index 3362ba7..2a5f9bd 100644 --- a/src/wm_layer.hpp +++ b/src/wm_layer.hpp @@ -38,6 +38,9 @@ class LayerState const std::unordered_map<std::string, std::string> popCurrentState(); const std::unordered_map<std::string, std::string> getCurrentState(); const std::vector<unsigned> getIviIdList(); + void addLayer(unsigned layer); + void removeLayer(unsigned layer); + void setArea(const std::string& app, const std::string& area); private: std::vector<unsigned> render_order; @@ -62,9 +65,10 @@ class WMLayer MANAGEMENT_TYPE layerType() { return this->type; } void appendArea(const std::string& area); void removeLayerID(unsigned id); - LayerState getLayerState() const { return before_state; } - WMError setLayerState(const LayerState& l); - bool checkIDBelongTo(unsigned id); + LayerState& getLayerState() { return before_state; } + WMError setLayerState(const LayerState& l); + bool hasLayerID(unsigned id); + bool hasRole(const std::string& role); private: LayerState before_state; LayerState state; |