// Set all others invisible
for (auto &i : this->controller->surfaces) {
auto &si = this->controller->sprops[i.second->id];
- if (si.visibility != 0 && int(si.id) != this->layers.main_surface) {
+ if (si.visibility != 0 &&
+ int(si.id) != this->layers.main_surface) {
this->deactivate(i.second->id);
}
}
logdebug("%s drawing_name %s", __func__, drawing_name);
auto r = this->app->activate_surface(drawing_name);
if (r != nullptr) {
+ logdebug("%s failed with error: %s", __func__, r);
return Err<json_object *>(r);
}
return Ok(json_object_new_object());
logdebug("%s drawing_name %s", __func__, drawing_name);
auto r = this->app->deactivate_surface(drawing_name);
if (r != nullptr) {
+ logdebug("%s failed with error: %s", __func__, r);
return Err<json_object *>(r);
}
return Ok(json_object_new_object());