}
};
+struct TmpClient
+{
+ std::string appid;
+ unsigned pid;
+};
+
class WindowManager
{
public:
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();
// 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;
};