xdg-shell: use wlr_xdg_toplevel in sway_view

Improved type safety.

Closes: https://github.com/swaywm/sway/issues/6813
This commit is contained in:
Simon Ser 2022-02-07 20:51:19 +01:00 committed by Kirill Primak
parent 5c00f1f113
commit f795aa1c95
3 changed files with 40 additions and 56 deletions

View file

@ -194,7 +194,7 @@ static struct sway_container *surface_at_view(struct sway_container *con, double
#endif
case SWAY_VIEW_XDG_SHELL:
_surface = wlr_xdg_surface_surface_at(
view->wlr_xdg_surface,
view->wlr_xdg_toplevel->base,
view_sx, view_sy, &_sx, &_sy);
break;
}