Rename wlr_surface_get_extends() to wlr_surface_get_extents()

Extend (verb): cause to cover a wider area; make larger.
master
Kirill Primak 3 years ago committed by Simon Zeni
parent d3b7e040af
commit e17916d413

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

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

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

Loading…
Cancel
Save