diff options
Diffstat (limited to 'src/wm_client.cpp')
-rw-r--r-- | src/wm_client.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/wm_client.cpp b/src/wm_client.cpp index 3bc2d31..0f78f9f 100644 --- a/src/wm_client.cpp +++ b/src/wm_client.cpp @@ -71,12 +71,14 @@ WMClient::WMClient(const string &appid, const string &role) } } -WMClient::WMClient(const string &appid, unsigned layer, - const string& layer_name, unsigned surface, const string &role) - : id(appid), layer(layer), wm_layer_name(layer_name), - role2surface(0) +WMClient::WMClient(const string &appid, unsigned layer, const string &role) + : id(appid), + layer(layer), + main_role(role), + role2surface(0), + evname2afb_event(0) { - role2surface[role] = surface; + role2surface[role] = INVALID_SURFACE_ID; for (auto x : kWMEvents) { #if GTEST_ENABLED @@ -129,11 +131,6 @@ unsigned WMClient::surfaceID() const return this->surface; } -const string& WMClient::getWMLayerName() -{ - return this->wm_layer_name; -} - void WMClient::setRole(const string& role) { this->role_list.clear(); |