aboutsummaryrefslogtreecommitdiffstats
path: root/src/windowmanager-client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/windowmanager-client.cpp')
-rw-r--r--src/windowmanager-client.cpp34
1 files changed, 19 insertions, 15 deletions
diff --git a/src/windowmanager-client.cpp b/src/windowmanager-client.cpp
index bc24978..55d9864 100644
--- a/src/windowmanager-client.cpp
+++ b/src/windowmanager-client.cpp
@@ -14,29 +14,30 @@
* limitations under the License.
*/
#include <iostream> // for debug
-using std::cerr;//debug
-using std::cout;//debug
-using std::endl;//debug
+using std::cerr; //debug
+using std::cout; //debug
+using std::endl; //debug
#include "windowmanager-client.hpp"
-namespace wm {
+namespace wm
+{
using std::string;
const std::vector<std::string> wm_events = {
// Private event for applications
- "syncDraw", "flushDraw", "visible", "invisible", "active", "inactive"
-};
+ "syncDraw", "flushDraw", "visible", "invisible", "active", "inactive"};
WMClient::WMClient(const string &appid, unsigned layerID, unsigned surfaceID, const string &role)
- :id(appid),
- layer(layerID),
- roles(0),
- surfaces(0)
+ : id(appid),
+ layer(layerID),
+ roles(0),
+ surfaces(0)
{
roles.push_back(role);
surfaces.push_back(surfaceID);
- for(auto x: wm_events){
+ for (auto x : wm_events)
+ {
#if GTEST_ENABLED
string ev = x;
#else
@@ -54,7 +55,8 @@ WMClient::WMClient(const string &appid, const string &role)
event_list(0)
{
roles.push_back(role);
- for(auto x: wm_events){
+ for (auto x : wm_events)
+ {
#if GTEST_ENABLED
string ev = x;
#else
@@ -64,11 +66,13 @@ WMClient::WMClient(const string &appid, const string &role)
}
}
-WMClient::~WMClient(){
+WMClient::~WMClient()
+{
}
-string WMClient::appID(){
+string WMClient::appID()
+{
return this->id;
}
-} \ No newline at end of file
+} // namespace wm \ No newline at end of file