xwayland: split out xwayland_view constructor

...and make it public in preparation for supporting override-redirect
requests from unmanaged xwayland surfaces.
This commit is contained in:
Johan Malm 2023-04-17 17:02:11 +01:00 committed by Johan Malm
parent 130da3c803
commit 9d08a452a3
2 changed files with 35 additions and 32 deletions

View file

@ -43,6 +43,9 @@ struct xwayland_view {
void xwayland_unmanaged_create(struct server *server,
struct wlr_xwayland_surface *xsurface, bool mapped);
struct xwayland_view *xwayland_view_create(struct server *server,
struct wlr_xwayland_surface *xsurface);
struct wlr_xwayland_surface *xwayland_surface_from_view(struct view *view);
bool xwayland_apply_size_hints(struct view *view, int *w, int *h);