diff options
Diffstat (limited to 'src/wm_layer.cpp')
-rw-r--r-- | src/wm_layer.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/wm_layer.cpp b/src/wm_layer.cpp index 294e356..2e30069 100644 --- a/src/wm_layer.cpp +++ b/src/wm_layer.cpp @@ -36,6 +36,26 @@ LayerState::LayerState() area2appid() {} + +void LayerState::attachIdToArea(const string& area, const WMClient& client) +{ + this->area2appid[area] = client.appID(); + this->render_order.push_back(client.layerID()); +} + +const unordered_map<string, string> LayerState::popCurrentState() +{ + unordered_map<string, string> tmp = this->area2appid; + this->area2appid.clear(); + this->render_order.clear(); + return tmp; +} + +const unordered_map<string, string> LayerState::getCurrentState() +{ + return this->area2appid; +} + const vector<unsigned> LayerState::getIviIdList() { return this->render_order; @@ -240,4 +260,9 @@ void WMLayer::dump() } +/* void WMLayer::undo() +{ + this->tmp_state = this->state; +} + */ } // namespace wm |