summaryrefslogtreecommitdiffstats
path: root/src/wayland.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wayland.cpp')
-rw-r--r--src/wayland.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/wayland.cpp b/src/wayland.cpp
index e12f155..ff08488 100644
--- a/src/wayland.cpp
+++ b/src/wayland.cpp
@@ -425,11 +425,10 @@ void controller::layer_screen(struct layer * /*l*/, struct wl_output *screen) {
void controller::layer_destroyed(struct layer *l) {
logdebug("genivi::layer %s @ %p", __func__, this->proxy.get());
- add_task("remove layer",
- [l](struct controller *c) {
- c->lprops.erase(l->id);
- c->layers.erase(l->id);
- });
+ add_task("remove layer", [l](struct controller *c) {
+ c->lprops.erase(l->id);
+ c->layers.erase(l->id);
+ });
}
// __
@@ -658,11 +657,10 @@ void controller::surface_content(struct surface *s, int32_t content_state) {
logdebug("genivi::surface %s @ %p s %i", __func__, this->proxy.get(),
content_state);
if (content_state == IVI_CONTROLLER_SURFACE_CONTENT_STATE_CONTENT_REMOVED) {
- add_task("remove surface",
- [s](struct controller *c) {
- c->sprops.erase(s->id);
- c->surfaces.erase(s->id);
- });
+ add_task("remove surface", [s](struct controller *c) {
+ c->sprops.erase(s->id);
+ c->surfaces.erase(s->id);
+ });
}
}