Rename wlr_surface_get_extends() to wlr_surface_get_extents()

Extend (verb): cause to cover a wider area; make larger.
This commit is contained in:
Kirill Primak 2021-09-25 12:50:11 +03:00 committed by Simon Zeni
parent d3b7e040af
commit e17916d413
3 changed files with 3 additions and 3 deletions

View File

@ -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.

View File

@ -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,

View File

@ -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)) {