diff options
Diffstat (limited to 'src/wm_client.cpp')
-rw-r--r-- | src/wm_client.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/wm_client.cpp b/src/wm_client.cpp index 6f1aa20..24e2247 100644 --- a/src/wm_client.cpp +++ b/src/wm_client.cpp @@ -90,6 +90,17 @@ unsigned WMClient::surfaceID(const string &role) const return this->role2surface.at(role); } +std::string WMClient::role(unsigned surface) const +{ + for(const auto& [key, value] : this->role2surface) + { + if(value == surface){ + return key; + } + } + return std::string(""); +} + unsigned WMClient::layerID() const { return this->layer; |