compositor: keep track of the weston_layer a weston_view is in
authorGiulio Camuffo <giuliocamuffo@gmail.com>
Wed, 9 Jul 2014 19:12:56 +0000 (22:12 +0300)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 23 Jul 2014 19:34:33 +0000 (12:34 -0700)
commit412e6a59eb90da5b29226e0b32f4a1a8e21c6500
tree656c515d17dcc9308bc6100719a320a60c55b5ac
parentcfff3122046b346f0b47b6f7dfbbdf62352cfe61
compositor: keep track of the weston_layer a weston_view is in

This introduces a new struct, weston_layer_entry, which is now used
in place of wl_list to keep the link for the layer list in weston_view
and the head of the list in weston_layer.
weston_layer_entry also has a weston_layer*, which points to the layer
the view is in or, in the case the entry it's the head of the list, to
the layer itself.
desktop-shell/exposay.c
desktop-shell/input-panel.c
desktop-shell/shell.c
src/compositor.c
src/compositor.h
src/data-device.c
src/input.c
tests/weston-test.c