xdg: remove unnecessary cast

This commit is contained in:
John Lindgren 2025-11-12 10:20:03 -05:00 committed by Consolatis
parent d15152b27b
commit 51c2003ed8

View file

@ -590,8 +590,7 @@ static struct view *
xdg_toplevel_view_get_root(struct view *view) xdg_toplevel_view_get_root(struct view *view)
{ {
struct wlr_xdg_toplevel *root = top_parent_of(view); struct wlr_xdg_toplevel *root = top_parent_of(view);
struct wlr_xdg_surface *surface = (struct wlr_xdg_surface *)root->base; return (struct view *)root->base->data;
return (struct view *)surface->data;
} }
static void static void