weston/desktop-shell
Semi Malinen e7a52fbb7d libweston: add weston_view_set_output()
Instead of desktop shell assigning view outputs directly,
use a new method, weston_view_set_output(). The method can
set up an output destroy listener to make sure that views
do not have stale output pointers.

Without this patch it is possible to end up in a scenario
where, e.g. configure_static_view() accesses memory that
has already been freed. The scenario can be provoked by
repeatedly plugging and unplugging a display. The faulty
memory accesses are reported by valgrind.

Signed-off-by: Semi Malinen <semi.malinen@ge.com>
Signed-off-by: Fabien Lahoudere <fabien.lahoudere@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2018-05-18 13:50:21 +03:00
..
exposay.c libweston: Use struct timespec for key events 2017-11-27 11:42:07 +02:00
input-panel.c libweston: make wl_output point to weston_head 2018-04-10 14:33:59 +03:00
shell.c libweston: add weston_view_set_output() 2018-05-18 13:50:21 +03:00
shell.h libweston: Use struct timespec for compositor time 2017-11-27 11:42:07 +02:00