From 498f30aad100ca616640c7bcbf11ab8ef7d48c45 Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Sat, 29 Jan 2022 23:06:09 +0300 Subject: output-layout: make wlr_output_layout_get_box() take a box as parameter Closes https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/812 --- include/wlr/types/wlr_output_layout.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_output_layout.h b/include/wlr/types/wlr_output_layout.h index abbe4884..f537c418 100644 --- a/include/wlr/types/wlr_output_layout.h +++ b/include/wlr/types/wlr_output_layout.h @@ -107,10 +107,10 @@ void wlr_output_layout_closest_point(struct wlr_output_layout *layout, /** * Get the box of the layout for the given reference output in layout * coordinates. If `reference` is NULL, the box will be for the extents of the - * entire layout. + * entire layout. If the output isn't in the layout, the box will be empty. */ -struct wlr_box *wlr_output_layout_get_box( - struct wlr_output_layout *layout, struct wlr_output *reference); +void wlr_output_layout_get_box(struct wlr_output_layout *layout, + struct wlr_output *reference, struct wlr_box *dest_box); /** * Add an auto configured output to the layout. This will place the output in a -- cgit v1.2.3