Enable an application re-launch 31/12931/6
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>
Fri, 22 Dec 2017 03:28:21 +0000 (12:28 +0900)
committerTadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
Mon, 25 Dec 2017 12:56:40 +0000 (12:56 +0000)
commit869c528ee82fc8c2e2877d67521e26c3a2ca47ca
tree55d5a660e1ebf032e45671ef8bef594b40ed3249
parentb00ef7b9c2f495eea7911d874b9f2fb744c87412
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>
src/app.cpp
src/main.cpp