std::string appID() const;
unsigned surfaceID(const std::string &role) const;
unsigned layerID() const;
- std::string role(unsigned surface) const;
+ const std::string& getWMLayerName();
+ unsigned surfaceID() const;
+ std::vector<unsigned> renderOrder() const;
+ const std::vector<std::string> &roles() const;
+ void setRole(const std::string& role);
void registerLayer(unsigned layer);
bool addSurface(const std::string& role, unsigned surface);
bool removeSurfaceIfExist(unsigned surface);
private:
std::string id;
unsigned layer;
- std::unordered_map<std::string, unsigned> role2surface;
+ std::string wm_layer_name;
+ std::string area;
+ unsigned surface; // currently, main application has only one surface.
+ std::vector<std::string> role_list;
+ std::vector<unsigned> surface_render_order;
+ std::unordered_map<std::string, unsigned> service2surfaces;
#if GTEST_ENABLED
// This is for unit test. afb_make_event occurs sig11 if call not in afb-binding
std::unordered_map<std::string, std::string> event2list;