shell: Do not hang when mapping a popup twice
authorGiulio Camuffo <giuliocamuffo@gmail.com>
Mon, 18 Feb 2013 21:26:01 +0000 (22:26 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 18 Feb 2013 22:39:40 +0000 (17:39 -0500)
commit5efb413cbc43f66ed587dc7327b22ea5d71b34a1
treecebc041d6817cd4a98e7a1c6fd355b5172ab0571
parent1d298b23201abca9519cb7d396bd4f34ed2a74e2
shell: Do not hang when mapping a popup twice

When calling shell_map_popup() more than one time on the same shell_surface
the parent transform was getting added more than one time to the transform
list, resulting in an infinite loop when going through the list with
wl_list_for_each in weston_surface_update_transform_enable().
This commit removes the old transform before adding it again.
src/shell.c