Add addFloatingSurface
[apps/agl-service-windowmanager.git] / src / applist.cpp
index f5634fe..99f7fe4 100644 (file)
@@ -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;