Change API in wm_layer
[apps/agl-service-windowmanager-2017.git] / src / wm_layer.cpp
index 28e1cd9..b3e3d2c 100644 (file)
@@ -241,10 +241,14 @@ bool WMLayer::hasRole(const string& role)
     return false;
 }
 
-WMError WMLayer::commitChange()
+void WMLayer::update()
 {
     this->state = this->tmp_state;
-    return WMError::SUCCESS;
+}
+
+void WMLayer::undo()
+{
+    this->tmp_state = this->state;
 }
 
 void WMLayer::dump()