X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwm_client.hpp;h=7df4dea5a57312f3c93d6f604ab3a3e84bda007b;hb=refs%2Ftags%2Fneedlefish_13.93.0;hp=3ffa7863661f43b7b09c6fe628987f95f6d98307;hpb=ceb1049ca57b0fd0ce41e9eca631557ffa46993a;p=apps%2Fagl-service-windowmanager.git diff --git a/src/wm_client.hpp b/src/wm_client.hpp index 3ffa786..7df4dea 100644 --- a/src/wm_client.hpp +++ b/src/wm_client.hpp @@ -45,14 +45,19 @@ class WMClient std::string appID() const; std::string role() const; + void setRole(const std::string& role); unsigned layerID() const; + void setLayerID(unsigned id); unsigned surfaceID() const; void registerSurface(unsigned surface); + void activate(); + void deactivate(); std::string area() const {return this->app_area;}; void setArea(const std::string area) {this->app_area = area;} WMError addSurface(unsigned surface); bool isSourceSizeSet(); void setSurfaceSizeCorrectly(); + bool isActive() { return this->is_active;} bool removeSurfaceIfExist(unsigned surface); bool subscribe(afb_req_t req, const std::string &event_name); @@ -68,6 +73,7 @@ class WMClient std::string id; unsigned layer; bool is_source_set; + bool is_active; std::string main_role; std::string app_area; unsigned surface; // currently, main application has only one surface.