Implement set_role
[apps/agl-service-windowmanager-2017.git] / src / window_manager.hpp
index 546e771..6527736 100644 (file)
@@ -129,6 +129,12 @@ struct id_allocator
     }
 };
 
+struct TmpClient
+{
+    std::string   appid;
+    unsigned pid;
+};
+
 class WindowManager
 {
   public:
@@ -177,8 +183,8 @@ class WindowManager
     void send_event(char const *evname, char const *label, char const *area, int x, int y, int w, int h);
 
     // Events from the compositor we are interested in
-    void surface_created(uint32_t surface_id);
-    void surface_removed(uint32_t surface_id);
+    void surface_created(unsigned pid, unsigned surface_id);
+    void surface_removed(unsigned surface_id);
 
     void removeClient(const std::string &appid);
     void exceptionProcessForTransition();
@@ -240,8 +246,8 @@ class WindowManager
     // Surface are info (x, y, w, h)
     rect_map area_info;
     // FOR CES DEMO
-    std::unordered_map<unsigned, std::string> tmp_surface2app;
-
+    std::unordered_map<unsigned, struct TmpClient> tmp_surface2app;
+    std::vector<struct TmpClient> tmp_apps;
     static const char* kDefaultOldRoleDb;
 };