diff options
author | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2017-12-22 12:28:21 +0900 |
---|---|---|
committer | Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com> | 2017-12-25 12:56:40 +0000 |
commit | 869c528ee82fc8c2e2877d67521e26c3a2ca47ca (patch) | |
tree | 55d5a660e1ebf032e45671ef8bef594b40ed3249 /src/app.cpp | |
parent | b00ef7b9c2f495eea7911d874b9f2fb744c87412 (diff) |
Enable an application re-launch
When an application dies after requestSurface,
the application can't be launched because
Window Manager doesn't know the application is dead and doesn't
clean up its database.
In other case, when Mixer app dies due to pulse audio crash
just before Window Manager handles surface memory,
the connection between weston and Window Manager is dead.
So add following
* Add context setting with window manager clients.
Terminate the context and clean up WM database
if a client application is dead.
* Add layout_commit() after add surfaces to layer.
[PatchSet 2]
* Add layout_commit() after add surfaces to layer
in api_request_surface
Bug-AGL: SPEC-1086
Change-Id: I6ecae2606ac644e49a3383ba849390f8c235f187
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/app.cpp')
-rw-r--r-- | src/app.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app.cpp b/src/app.cpp index 74a114d..337b0ac 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -629,7 +629,7 @@ void App::surface_created(uint32_t surface_id) { this->controller->layers[*layer_id]->add_surface( this->controller->surfaces[surface_id].get()); - + this->layout_commit(); // activate the main_surface right away /*if (surface_id == static_cast<unsigned>(this->layers.main_surface)) { HMI_DEBUG("wm", "Activating main_surface (%d)", surface_id); @@ -736,6 +736,7 @@ char const *App::api_request_surface(char const *drawing_name, this->controller->layers[*lid]->add_surface( this->controller->surfaces[sid].get()); + this->layout_commit(); return nullptr; } |