aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-06-10 18:39:31 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-06-11 09:01:04 +0900
commit0d9ebe5963293b0bb3c6975d53a48076d5fb3eb8 (patch)
treec8a5de188f621147e5ea6b541b9f4b7f44216ceb
parentee78c7d1cb676f997dd479720853e9a482a270c8 (diff)
Add addFloatingSurface
Change-Id: I0f9ec4eb910a727683de50fd26491ac018f135bc Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r--src/applist.cpp8
-rw-r--r--src/applist.hpp1
2 files changed, 8 insertions, 1 deletions
diff --git a/src/applist.cpp b/src/applist.cpp
index f5634fe..99f7fe4 100644
--- a/src/applist.cpp
+++ b/src/applist.cpp
@@ -114,10 +114,16 @@ WMError AppList::lookUpFloatingSurface(const std::string &appid, unsigned *surfa
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;
diff --git a/src/applist.hpp b/src/applist.hpp
index a5a895a..90fd6bd 100644
--- a/src/applist.hpp
+++ b/src/applist.hpp
@@ -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);
+ void addFloatingSurface(unsigned surface, unsigned pid);
// Request Interface
unsigned