From 8acbf449cceb55120bc3fdd20c953afc6ca76f09 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 22 Apr 2019 14:03:53 +0300 Subject: output: introduce wlr_output_preferred_mode --- include/wlr/types/wlr_output.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index 8590b8ad..820b7740 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -157,6 +157,11 @@ struct wlr_surface; bool wlr_output_enable(struct wlr_output *output, bool enable); void wlr_output_create_global(struct wlr_output *output); void wlr_output_destroy_global(struct wlr_output *output); +/** + * Returns the preferred mode for this output. If the output doesn't support + * modes, returns NULL. + */ +struct wlr_output_mode *wlr_output_preferred_mode(struct wlr_output *output); /** * Sets the output mode. Enables the output if it's currently disabled. */ -- cgit v1.2.3