diff options
author | Kirill Primak <vyivel@eclair.cafe> | 2022-01-29 23:06:09 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-01-31 10:32:47 +0000 |
commit | 498f30aad100ca616640c7bcbf11ab8ef7d48c45 (patch) | |
tree | a52b89dc0807be35ba6df3b2e66025cbee1a596c /include | |
parent | 2c59435e8223339070f963263f2caebf07620078 (diff) |
output-layout: make wlr_output_layout_get_box() take a box as parameter
Closes https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/812
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_output_layout.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 |