desktop-shell: initialize children link
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Tue, 28 Jan 2014 12:54:16 +0000 (13:54 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Sat, 1 Feb 2014 09:29:13 +0000 (01:29 -0800)
commitadaa20c017a549593e2a735a2d8a73edc9c17b6d
tree81216f6ad2e857c3fce6149cae880378024809b6
parent38b58eba74ef7d9e8460b455f1e1cbea12d87bae
desktop-shell: initialize children link

Since commit 9046d2, when destroying a surface, we remove all the
links from its children. But when the child surfaces are destroyed,
those links will be removed again, but since they were not properly
initialized, weston will crash.

Call shell_surface_set_parent instead which removes the link and
sets parent while also initializing the link, thus avoiding this
crash.
desktop-shell/shell.c