mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
Listen to display destroy in xwayland, rename wlr_egl_free
This commit is contained in:
parent
9d43adaafa
commit
18eb1eee3f
8 changed files with 26 additions and 10 deletions
|
|
@ -39,7 +39,7 @@ bool wlr_drm_renderer_init(struct wlr_drm_backend *drm,
|
|||
return true;
|
||||
|
||||
error_egl:
|
||||
wlr_egl_free(&renderer->egl);
|
||||
wlr_egl_finish(&renderer->egl);
|
||||
error_gbm:
|
||||
gbm_device_destroy(renderer->gbm);
|
||||
return false;
|
||||
|
|
@ -51,7 +51,7 @@ void wlr_drm_renderer_finish(struct wlr_drm_renderer *renderer) {
|
|||
}
|
||||
|
||||
wlr_renderer_destroy(renderer->wlr_rend);
|
||||
wlr_egl_free(&renderer->egl);
|
||||
wlr_egl_finish(&renderer->egl);
|
||||
gbm_device_destroy(renderer->gbm);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ static void wlr_wl_backend_destroy(struct wlr_backend *_backend) {
|
|||
free(backend->seat_name);
|
||||
|
||||
wl_event_source_remove(backend->remote_display_src);
|
||||
wlr_egl_free(&backend->egl);
|
||||
wlr_egl_finish(&backend->egl);
|
||||
if (backend->seat) wl_seat_destroy(backend->seat);
|
||||
if (backend->shm) wl_shm_destroy(backend->shm);
|
||||
if (backend->shell) zxdg_shell_v6_destroy(backend->shell);
|
||||
|
|
|
|||
|
|
@ -247,7 +247,7 @@ static void wlr_x11_backend_destroy(struct wlr_backend *backend) {
|
|||
wl_list_remove(&x11->display_destroy.link);
|
||||
|
||||
wl_event_source_remove(x11->frame_timer);
|
||||
wlr_egl_free(&x11->egl);
|
||||
wlr_egl_finish(&x11->egl);
|
||||
|
||||
xcb_disconnect(x11->xcb_conn);
|
||||
free(x11);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue