mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-01-02 21:40:15 +01:00
compositor: Initialize output listener links
Make sure the links are initialized so we can safely remove the listeners in weston_view_unmap(). https://bugs.freedesktop.org/show_bug.cgi?id=72808
This commit is contained in:
parent
e22f3bb5da
commit
df42a80ea2
1 changed files with 2 additions and 0 deletions
|
|
@ -451,8 +451,10 @@ weston_view_create(struct weston_surface *surface)
|
|||
view->output = NULL;
|
||||
|
||||
view->output_move_listener.notify = weston_view_output_move_handler;
|
||||
wl_list_init(&view->output_move_listener.link);
|
||||
view->output_destroy_listener.notify =
|
||||
weston_view_output_destroy_handler;
|
||||
wl_list_init(&view->output_destroy_listener.link);
|
||||
|
||||
return view;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue