From e05891ff9f7343a0c536215fc5b4ef8decfa6983 Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Fri, 8 Jun 2018 18:24:04 +0900 Subject: Enable functions * lookUpFloatingSurface * appendRole Change-Id: I3153cb0bbb266401f7beb0c709e2e3b64af42199 Signed-off-by: Kazumasa Mitsunari --- src/applist.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/applist.hpp') diff --git a/src/applist.hpp b/src/applist.hpp index 0f2285b..92310fd 100644 --- a/src/applist.hpp +++ b/src/applist.hpp @@ -30,6 +30,8 @@ namespace wm /* using std::experimental::nullopt; using std::experimental::optional; */ +struct FloatingSurface; + class AppList { public: @@ -45,6 +47,9 @@ class AppList int countClient() const; std::shared_ptr lookUpClient(const std::string &appid); void removeSurface(unsigned surface); + WMError lookUpFloatingSurface(unsigned pid, unsigned *surface); + WMError lookUpFloatingSurface(const std::string &appid, unsigned *surface); + WMError appendRole(const std::string &id, const std::string &role, unsigned surface); // Request Interface unsigned currentRequestNumber() const; @@ -71,6 +76,9 @@ class AppList std::vector req_list; std::unordered_map> app2client; unsigned current_req; + + std::vector floating_surfaces; + //std::vector floating_clients; }; } // namespace wm -- cgit 1.2.3-korg