libweston: Rebuild view list after adding an output

This fixes an assert() that can fire when outputs are hotplugged.

Fixes #787

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
Derek Foreman 2023-08-07 09:39:26 -05:00
parent 63e473a9cf
commit 3f2ce98278
1 changed files with 2 additions and 0 deletions

View File

@ -6946,6 +6946,8 @@ weston_compositor_add_output(struct weston_compositor *compositor,
*/
wl_list_for_each_safe(view, next, &compositor->view_list, link)
weston_view_geometry_dirty_internal(view);
compositor->view_list_needs_rebuild = true;
}
/** Create a weston_coord_global from a point and a weston_output