Add addFloatingSurface
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>
Sun, 10 Jun 2018 09:39:31 +0000 (18:39 +0900)
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>
Mon, 11 Jun 2018 00:01:04 +0000 (09:01 +0900)
Change-Id: I0f9ec4eb910a727683de50fd26491ac018f135bc
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
src/applist.cpp
src/applist.hpp

index f5634fe..99f7fe4 100644 (file)
@@ -114,10 +114,16 @@ WMError AppList::lookUpFloatingSurface(const std::string &appid, unsigned *surfa
     return WMError::SUCCESS;
 }
 
     return WMError::SUCCESS;
 }
 
-void addFloatingClient(const std::string &appid, unsigned layer, const std::string &role)
+void AppList::addFloatingClient(const std::string &appid, unsigned layer, const std::string &role)
 {
 }
 
 {
 }
 
+void AppList::addFloatingSurface(unsigned surface, unsigned pid)
+{
+    struct FloatingSurface fsurface{surface, pid};
+    this->floating_surfaces.push_back(fsurface);
+}
+
 WMError AppList::appendRole(const std::string &id, const std::string &role, unsigned surface)
 {
     WMError wm_err = WMError::NO_ENTRY;
 WMError AppList::appendRole(const std::string &id, const std::string &role, unsigned surface)
 {
     WMError wm_err = WMError::NO_ENTRY;
index a5a895a..90fd6bd 100644 (file)
@@ -55,6 +55,7 @@ class AppList
     WMError lookUpFloatingSurface(const std::string &appid, unsigned *surface);
     WMError appendRole(const std::string &appid, const std::string &role, unsigned surface);
     void addFloatingClient(const std::string &appid, unsigned layer, const std::string &role);
     WMError lookUpFloatingSurface(const std::string &appid, unsigned *surface);
     WMError appendRole(const std::string &appid, const std::string &role, unsigned surface);
     void addFloatingClient(const std::string &appid, unsigned layer, const std::string &role);
+    void addFloatingSurface(unsigned surface, unsigned pid);
 
     // Request Interface
     unsigned
 
     // Request Interface
     unsigned