xwayland: Add mapped argument to xwayland_view_create()

This is a trivial cleanup to make xwayland_view_create() symmetrical with
xwayland_unmanaged_create(), and avoid the need to access view->impl from
xwayland-unmanaged.c.

The return value of xwayland_view_create() is no longer user, so return void.

No functional change.
This commit is contained in:
John Lindgren 2023-04-19 18:10:07 -04:00
parent 9a9e20d2b0
commit 5b962d5437
3 changed files with 12 additions and 14 deletions

View file

@ -146,13 +146,7 @@ unmanaged_handle_override_redirect(struct wl_listener *listener, void *data)
unmanaged_handle_destroy(&unmanaged->destroy, NULL);
xsurface->data = NULL;
struct xwayland_view *xwayland_view = xwayland_view_create(server, xsurface);
if (mapped) {
struct view *view = &xwayland_view->base;
if (view->impl->map) {
view->impl->map(view);
}
}
xwayland_view_create(server, xsurface, mapped);
}
static void