xwayland: use wlr_xwayland_surface_has_window_type()

This eliminates a bit of logic, including an extra XWayland connection.

See also:
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4553
This commit is contained in:
John Lindgren 2025-05-21 11:43:50 -04:00 committed by Johan Malm
parent a3d6226728
commit fd5031731e
4 changed files with 52 additions and 99 deletions

View file

@ -60,7 +60,8 @@ xdg_toplevel_view_get_size_hints(struct view *view)
}
static bool
xdg_toplevel_view_contains_window_type(struct view *view, int32_t window_type)
xdg_toplevel_view_contains_window_type(struct view *view,
enum window_type window_type)
{
assert(view);