App: fix missing layout_commit() on single-surface deactivate
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>
Tue, 12 Sep 2017 09:29:39 +0000 (11:29 +0200)
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>
Tue, 12 Sep 2017 09:29:39 +0000 (11:29 +0200)
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
src/app.cpp

index 246b629..a4b22f5 100644 (file)
@@ -520,6 +520,7 @@ char const *App::api_deactivate_surface(char const *drawing_name) {
          this->try_layout(state, LayoutState{-1, -1}, [&] (LayoutState const &nl) {
             this->deactivate(*surface_id);
             state = nl;
+            this->layout_commit();
          });
       }
    } else if (state.sub == *surface_id) {