|
|
@ -141,7 +141,6 @@ static struct wlr_xwayland_surface *xwayland_surface_create(
|
|
|
|
surface->width = width;
|
|
|
|
surface->width = width;
|
|
|
|
surface->height = height;
|
|
|
|
surface->height = height;
|
|
|
|
surface->override_redirect = override_redirect;
|
|
|
|
surface->override_redirect = override_redirect;
|
|
|
|
wl_list_insert(&xwm->surfaces, &surface->link);
|
|
|
|
|
|
|
|
wl_list_init(&surface->children);
|
|
|
|
wl_list_init(&surface->children);
|
|
|
|
wl_list_init(&surface->parent_link);
|
|
|
|
wl_list_init(&surface->parent_link);
|
|
|
|
wl_signal_init(&surface->events.destroy);
|
|
|
|
wl_signal_init(&surface->events.destroy);
|
|
|
@ -182,6 +181,8 @@ static struct wlr_xwayland_surface *xwayland_surface_create(
|
|
|
|
return NULL;
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wl_list_insert(&xwm->surfaces, &surface->link);
|
|
|
|
|
|
|
|
|
|
|
|
wlr_signal_emit_safe(&xwm->xwayland->events.new_surface, surface);
|
|
|
|
wlr_signal_emit_safe(&xwm->xwayland->events.new_surface, surface);
|
|
|
|
|
|
|
|
|
|
|
|
return surface;
|
|
|
|
return surface;
|
|
|
|