From 51c2003ed8d80ffcc236393fceb296d8ca705c9a Mon Sep 17 00:00:00 2001 From: John Lindgren Date: Wed, 12 Nov 2025 10:20:03 -0500 Subject: [PATCH] xdg: remove unnecessary cast --- src/xdg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/xdg.c b/src/xdg.c index 363d7019..affe53ff 100644 --- a/src/xdg.c +++ b/src/xdg.c @@ -590,8 +590,7 @@ static struct view * xdg_toplevel_view_get_root(struct view *view) { struct wlr_xdg_toplevel *root = top_parent_of(view); - struct wlr_xdg_surface *surface = (struct wlr_xdg_surface *)root->base; - return (struct view *)surface->data; + return (struct view *)root->base->data; } static void