mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-16 08:56:26 -05:00
Do not destroy wl_client in wlr_xwayland_finish
This commit is contained in:
parent
18eb1eee3f
commit
b06535718d
3 changed files with 39 additions and 25 deletions
|
|
@ -1045,6 +1045,12 @@ void xwm_destroy(struct wlr_xwm *xwm) {
|
|||
if (xwm->cursor) {
|
||||
xcb_free_cursor(xwm->xcb_conn, xwm->cursor);
|
||||
}
|
||||
if (xwm->colormap) {
|
||||
xcb_free_colormap(xwm->xcb_conn, xwm->colormap);
|
||||
}
|
||||
if (xwm->window) {
|
||||
xcb_destroy_window(xwm->xcb_conn, xwm->window);
|
||||
}
|
||||
if (xwm->event_source) {
|
||||
wl_event_source_remove(xwm->event_source);
|
||||
}
|
||||
|
|
@ -1052,6 +1058,9 @@ void xwm_destroy(struct wlr_xwm *xwm) {
|
|||
wl_list_for_each_safe(xsurface, tmp, &xwm->surfaces, link) {
|
||||
wlr_xwayland_surface_destroy(xsurface);
|
||||
}
|
||||
wl_list_for_each_safe(xsurface, tmp, &xwm->unpaired_surfaces, link) {
|
||||
wlr_xwayland_surface_destroy(xsurface);
|
||||
}
|
||||
wl_list_remove(&xwm->compositor_surface_create.link);
|
||||
xcb_disconnect(xwm->xcb_conn);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue