shell: don't abuse link_layer for keeping track of input panel surfaces
authorPhilipp Brüschweiler <blei42@gmail.com>
Mon, 6 Aug 2012 11:44:42 +0000 (13:44 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 9 Aug 2012 14:37:41 +0000 (10:37 -0400)
commit8801357332b7a239e0d1b84cae87334d3fbd80db
tree42a80a11210dcdc5cd07ca119b9a46df40728890
parent3eb4761317f543c6273dba4ccc524f29a0b5b30d
shell: don't abuse link_layer for keeping track of input panel surfaces

Input panel surfaces were kept in a list by using layer_link of
weston_surface. This was pretty hacky and resulted in the bug that
an input panel surface was not removed from the list if it was unmapped
at the time of destruction.

This patch wraps the surface in a new input_panel_surface struct and
properly handles destruction with a signal listener.
src/shell.c