From e17916d413910e0e565381e97aeb1f292b7c4c5d Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Sat, 25 Sep 2021 12:50:11 +0300 Subject: [PATCH] Rename wlr_surface_get_extends() to wlr_surface_get_extents() Extend (verb): cause to cover a wider area; make larger. --- include/wlr/types/wlr_compositor.h | 2 +- types/wlr_compositor.c | 2 +- types/xdg_shell/wlr_xdg_surface.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/wlr/types/wlr_compositor.h b/include/wlr/types/wlr_compositor.h index fa9e354b..174869f4 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 c5044ce4..9aee912e 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 029ab81a..9842a563 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)) {