Enable an application re-launch 33/12933/4
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>
Tue, 26 Dec 2017 12:21:07 +0000 (21:21 +0900)
commitd501133086e8b39d0de898a6a4a60d97873ae6e7
treeac447697e415964c5cb4ca3132db42862174c75d
parent4bd8c0c0ad298c9da8b3803c121001d04e39f707
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