Move the process when an app is ternminated
[apps/agl-service-windowmanager-2017.git] / src / window_manager.hpp
index 2358c5a..a820aa5 100644 (file)
@@ -68,6 +68,17 @@ extern const char kKeyHeightMm[];
 extern const char kKeyScale[];
 extern const char kKeyIds[];
 
+typedef struct WMClientCtxt
+{
+    std::string name;
+    std::string role;
+    WMClientCtxt(const char *appName, const char* appRole)
+    {
+        name = appName;
+        role = appRole;
+    }
+} WMClientCtxt;
+
 struct id_allocator
 {
     unsigned next = 1;
@@ -229,6 +240,7 @@ class WindowManager
     const char* convertRoleOldToNew(char const *role);
     // Do not use this function
     void timerHandler();
+    void onApplicationTerminated(const WMClientCtxt& ctxt);
 
   private:
     bool pop_pending_events();