mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
output: introduce wlr_output_finish()
This commit is contained in:
parent
7963ba6a0d
commit
d5d650f9f6
6 changed files with 22 additions and 7 deletions
|
|
@ -1215,6 +1215,8 @@ static void dealloc_crtc(struct wlr_drm_connector *conn);
|
|||
static void drm_connector_destroy_output(struct wlr_output *output) {
|
||||
struct wlr_drm_connector *conn = get_drm_connector_from_output(output);
|
||||
|
||||
wlr_output_finish(output);
|
||||
|
||||
dealloc_crtc(conn);
|
||||
|
||||
conn->status = DRM_MODE_DISCONNECTED;
|
||||
|
|
|
|||
|
|
@ -80,8 +80,10 @@ static bool output_commit(struct wlr_output *wlr_output,
|
|||
}
|
||||
|
||||
static void output_destroy(struct wlr_output *wlr_output) {
|
||||
struct wlr_headless_output *output =
|
||||
headless_output_from_output(wlr_output);
|
||||
struct wlr_headless_output *output = headless_output_from_output(wlr_output);
|
||||
|
||||
wlr_output_finish(wlr_output);
|
||||
|
||||
wl_list_remove(&output->link);
|
||||
wl_event_source_remove(output->frame_timer);
|
||||
free(output);
|
||||
|
|
|
|||
|
|
@ -933,6 +933,8 @@ static void output_destroy(struct wlr_output *wlr_output) {
|
|||
return;
|
||||
}
|
||||
|
||||
wlr_output_finish(wlr_output);
|
||||
|
||||
wl_list_remove(&output->link);
|
||||
|
||||
if (output->cursor.surface) {
|
||||
|
|
|
|||
|
|
@ -94,6 +94,8 @@ static void output_destroy(struct wlr_output *wlr_output) {
|
|||
struct wlr_x11_output *output = get_x11_output_from_output(wlr_output);
|
||||
struct wlr_x11_backend *x11 = output->x11;
|
||||
|
||||
wlr_output_finish(wlr_output);
|
||||
|
||||
pixman_region32_fini(&output->exposed);
|
||||
|
||||
wlr_pointer_finish(&output->pointer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue