crosswalk-project/crosswalk — pull request #1527 by seanlong (2014-01-23 08:51:23+00:00)
Title: [Tizen] Fix window can't resume when running in service mode

Tizen app-core will find and raise X window when app is resumed. The window
finding is implemented by find a window which has a _NET_WM_PID property equals
to current PID. However in service mode, the window's _NET_WM_PID is the daemon
process's PID.

In order to fix this, when launched the xwalk-launcher will pass its PID to
xwalk-daemon, and the Application::Launch will save the launcher's PID. After a
window is created, the Application object will update its X window's property to
the xwalk-launcher's PID.