X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fapp.cpp;h=6a7fc69105d7701588df17e526f5d551a0f4bf1b;hb=343c700f2e1003855dfdeb4e2e7d102dc8bbe696;hp=ac04336d8302c9a4a61f3b6c600c9b14100a0001;hpb=add2152e7561ea456068dd73ebbdc480d13e1015;p=staging%2Fwindowmanager.git diff --git a/src/app.cpp b/src/app.cpp index ac04336..6a7fc69 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -135,7 +135,7 @@ App::App(wl::display *d) try { { auto l = load_layer_map( - this->config.get_string("layers.json").value().c_str()); + this->config.get_string("layers.json").value().c_str()); if (l.is_ok()) { this->layers = l.unwrap(); } else { @@ -144,8 +144,8 @@ App::App(wl::display *d) } { - auto l = load_layout( - this->config.get_string("layout.json").value().c_str()); + auto l = + load_layout(this->config.get_string("layout.json").value().c_str()); if (l.is_ok()) { this->layouts = l.unwrap(); } else { @@ -316,7 +316,7 @@ void App::surface_set_layout(uint32_t surface_id) { } char const *App::activate_surface(uint32_t surface_id) { - if (! this->controller->surface_exists(surface_id)) { + if (!this->controller->surface_exists(surface_id)) { return "Surface does not exist"; } @@ -328,7 +328,7 @@ char const *App::activate_surface(uint32_t surface_id) { auto &s = this->controller->surfaces[surface_id]; // Set all others invisible - for (auto &i: this->controller->surfaces) { + for (auto &i : this->controller->surfaces) { auto &si = this->controller->sprops[i.second->id]; if (si.visibility == 1 && si.id != s->id && int(si.id) != this->layers.main_surface) { @@ -426,7 +426,7 @@ binding_api::result_type binding_api::debug_terminate() { } binding_api::result_type binding_api::demo_activate_surface( - uint32_t surfaceid) { + uint32_t surfaceid) { char const *e = this->app->activate_surface(surfaceid); if (e) { return Err(e); @@ -435,7 +435,7 @@ binding_api::result_type binding_api::demo_activate_surface( } binding_api::result_type binding_api::demo_activate_all() { - for (auto &s: this->app->controller->surfaces) { + for (auto &s : this->app->controller->surfaces) { s.second->set_visibility(1); } this->app->controller->commit_changes();