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:
parent
63e473a9cf
commit
3f2ce98278
@ -6946,6 +6946,8 @@ weston_compositor_add_output(struct weston_compositor *compositor,
|
|||||||
*/
|
*/
|
||||||
wl_list_for_each_safe(view, next, &compositor->view_list, link)
|
wl_list_for_each_safe(view, next, &compositor->view_list, link)
|
||||||
weston_view_geometry_dirty_internal(view);
|
weston_view_geometry_dirty_internal(view);
|
||||||
|
|
||||||
|
compositor->view_list_needs_rebuild = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Create a weston_coord_global from a point and a weston_output
|
/** Create a weston_coord_global from a point and a weston_output
|
||||||
|
Loading…
Reference in New Issue
Block a user