aboutsummaryrefslogtreecommitdiffstats
path: root/src/window_manager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/window_manager.hpp')
-rw-r--r--src/window_manager.hpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/window_manager.hpp b/src/window_manager.hpp
index 546e771..6527736 100644
--- a/src/window_manager.hpp
+++ b/src/window_manager.hpp
@@ -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;
};