Add terminate process for layer_control
[apps/agl-service-windowmanager-2017.git] / src / wm_layer_control.cpp
index 9756d5e..30c37f9 100644 (file)
@@ -428,6 +428,14 @@ WMError LayerControl::visibilityChange(const WMAction& action)
     return ret;
 }
 
+void LayerControl::terminateApp(const shared_ptr<WMClient> client)
+{
+    for(auto& l : this->wm_layers)
+    {
+        l->terminateApp(client->layerID());
+    }
+}
+
 void LayerControl::dispatchCreateEvent(ilmObjectType object, unsigned id, bool created)
 {
     if (ILM_SURFACE == object)