ly = view->current.y;
/* Take into account invisible xdg-shell CSD borders */
if (view->type == LAB_XDG_SHELL_VIEW) {
- struct wlr_box geo;
- wlr_xdg_surface_get_geometry(xdg_surface_from_view(view), &geo);
- lx -= geo.x;
- ly -= geo.y;
+ struct wlr_xdg_surface *xdg_surface = xdg_surface_from_view(view);
+ lx -= xdg_surface->geometry.x;
+ ly -= xdg_surface->geometry.y;
}
} else if (node && wlr_layer_surface_v1_try_from_wlr_surface(surface)) {
wlr_scene_node_coords(node, &lx, &ly);
if (xdg_surface) {
/* Take into account invisible xdg-shell CSD borders */
- struct wlr_box geo;
- wlr_xdg_surface_get_geometry(xdg_surface, &geo);
- cursor_rect.x -= geo.x;
- cursor_rect.y -= geo.y;
+ cursor_rect.x -= xdg_surface->geometry.x;
+ cursor_rect.y -= xdg_surface->geometry.y;
}
} else {
cursor_rect = (struct wlr_box){0};
return;
}
- struct wlr_box size;
- wlr_xdg_surface_get_geometry(xdg_surface, &size);
+ struct wlr_box size = xdg_surface->geometry;
bool update_required = false;
/*
* dimensions remain zero until handle_commit().
*/
if (wlr_box_empty(&view->pending)) {
- struct wlr_box size;
- wlr_xdg_surface_get_geometry(xdg_surface, &size);
- view->pending.width = size.width;
- view->pending.height = size.height;
+ view->pending.width = xdg_surface->geometry.width;
+ view->pending.height = xdg_surface->geometry.height;
}
/*
[wrap-git]
url = https://gitlab.freedesktop.org/wlroots/wlroots.git
-revision = 1133bc15ceb2c2bcb6df692acda6bfa39a292ab5
+revision = 5c98d1a04a1439bf40c6e516086cfaff2d67f135
[provide]
dependency_names = wlroots-0.19