backend/drm: refactor wlr_output destruction

Instead of hand-rolling our own manual wlr_output cleanup function, rely
on wlr_output_destroy to remove an output from the compositor's state.
This commit is contained in:
Simon Ser 2020-12-09 15:15:17 +01:00
parent 019ffe8a5b
commit 248c7787c7
3 changed files with 49 additions and 59 deletions

View file

@ -38,7 +38,7 @@ static void backend_destroy(struct wlr_backend *backend) {
struct wlr_drm_connector *conn, *next;
wl_list_for_each_safe(conn, next, &drm->outputs, link) {
wlr_output_destroy(&conn->output);
destroy_drm_connector(conn);
}
wlr_signal_emit_safe(&backend->events.destroy, backend);