actually wait on the middle child in cmd_spawn

This prevents the pid table from getting filled with zombies :)

Closes #502
Correctly read _NET_WM_DESKTOP

This keeps windows on the right desktop across restarts. The commented out code
came from the xcffib migration and never got fixed up correctly.