X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwm_layer.cpp;h=1948b61c469e76b9af0e4fd47a325865bd464b3b;hb=f5001e404097c3e55ed9fad207036c55d11f5c8d;hp=7f8dbd9f23edb108c73b41b593e0e051f2da704d;hpb=1022ddf831865956795c2bd71c07176ab7eedf66;p=apps%2Fagl-service-windowmanager.git diff --git a/src/wm_layer.cpp b/src/wm_layer.cpp index 7f8dbd9..1948b61 100644 --- a/src/wm_layer.cpp +++ b/src/wm_layer.cpp @@ -82,7 +82,7 @@ void LayerState::setArea(const string& app, const string& area) this->area2appid[area] = app; } -WMLayer::WMLayer(json_object* j) : before_state(), state() +WMLayer::WMLayer(json_object* j) : tmp_state(), state() { this->name = jh::getStringFromJson(j, "name"); this->role_list = jh::getStringFromJson(j, "role"); @@ -162,7 +162,7 @@ const string& WMLayer::layerName() WMError WMLayer::setLayerState(const LayerState& l) { - this->before_state = l; + this->tmp_state = l; return WMError::SUCCESS; } @@ -205,12 +205,12 @@ bool WMLayer::hasRole(const string& role) /* WMError WMLayer::commitChange() { - this->state = this->before_state; + this->state = this->tmp_state; } void WMLayer::undo() { - this->before_state = this->state; + this->tmp_state = this->state; } */ } // namespace wm