aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-04-22 14:03:53 +0300
committerDrew DeVault <sir@cmpwn.com>2019-04-22 11:15:38 -0600
commit8acbf449cceb55120bc3fdd20c953afc6ca76f09 (patch)
treec082d925f1c39985d4fcfb5c2583177c687449e3 /include
parent95b22619e08adc3d407925c5eb4758dd9164c8fa (diff)
output: introduce wlr_output_preferred_mode
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_output.h5
1 files changed, 5 insertions, 0 deletions
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
@@ -158,6 +158,11 @@ 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.
*/
bool wlr_output_set_mode(struct wlr_output *output,