aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorArmin Preiml <apreiml@strohwolke.at>2018-08-25 09:14:55 +0200
committerArmin Preiml <apreiml@strohwolke.at>2018-08-25 09:14:55 +0200
commit5617d2bd6044a27e154ef61caf45896e2131fb3a (patch)
tree7191fc12d069f92143fb38e9e14380f21a5ea440 /include/wlr
parentd7c027d3e3d6b96c21bfd379a0e8542e77607e69 (diff)
introduce wlr_output_layout_farthest_output
Similar to wlr_output_layout_adjacent_output but will return the one that is the farthest away from the reference in given direction.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_output_layout.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_output_layout.h b/include/wlr/types/wlr_output_layout.h
index 2ac12a6a..cc9d2328 100644
--- a/include/wlr/types/wlr_output_layout.h
+++ b/include/wlr/types/wlr_output_layout.h
@@ -126,5 +126,8 @@ enum wlr_direction {
struct wlr_output *wlr_output_layout_adjacent_output(
struct wlr_output_layout *layout, enum wlr_direction direction,
struct wlr_output *reference, double ref_lx, double ref_ly);
+struct wlr_output *wlr_output_layout_farthest_output(
+ struct wlr_output_layout *layout, enum wlr_direction direction,
+ struct wlr_output *reference, double ref_lx, double ref_ly);
#endif