mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-03 09:01:40 -05:00
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:
parent
019ffe8a5b
commit
248c7787c7
3 changed files with 49 additions and 59 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue