diff --git a/include/wlr/types/wlr_compositor.h b/include/wlr/types/wlr_compositor.h index fa9e354b9..174869f44 100644 --- a/include/wlr/types/wlr_compositor.h +++ b/include/wlr/types/wlr_compositor.h @@ -381,7 +381,7 @@ void wlr_surface_send_frame_done(struct wlr_surface *surface, * surface coordinates. * X and y may be negative, if there are subsurfaces with negative position. */ -void wlr_surface_get_extends(struct wlr_surface *surface, struct wlr_box *box); +void wlr_surface_get_extents(struct wlr_surface *surface, struct wlr_box *box); /** * Get the struct wlr_surface corresponding to a wl_surface resource. diff --git a/types/wlr_compositor.c b/types/wlr_compositor.c index c5044ce44..9aee912e0 100644 --- a/types/wlr_compositor.c +++ b/types/wlr_compositor.c @@ -1175,7 +1175,7 @@ static void handle_bounding_box_surface(struct wlr_surface *surface, acc->max_y = max(y + surface->current.height, acc->max_y); } -void wlr_surface_get_extends(struct wlr_surface *surface, struct wlr_box *box) { +void wlr_surface_get_extents(struct wlr_surface *surface, struct wlr_box *box) { struct bound_acc acc = { .min_x = 0, .min_y = 0, diff --git a/types/xdg_shell/wlr_xdg_surface.c b/types/xdg_shell/wlr_xdg_surface.c index 029ab81a6..9842a563c 100644 --- a/types/xdg_shell/wlr_xdg_surface.c +++ b/types/xdg_shell/wlr_xdg_surface.c @@ -614,7 +614,7 @@ void wlr_xdg_surface_for_each_popup_surface(struct wlr_xdg_surface *surface, void wlr_xdg_surface_get_geometry(struct wlr_xdg_surface *surface, struct wlr_box *box) { - wlr_surface_get_extends(surface->surface, box); + wlr_surface_get_extents(surface->surface, box); /* The client never set the geometry */ if (wlr_box_empty(&surface->current.geometry)) {