aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2019-03-21 21:12:43 +0100
committeremersion <contact@emersion.fr>2019-03-21 22:12:43 +0200
commitcd60f40bbb973c8e68bad547190640aa16f0d5b9 (patch)
tree20aab1cfbdec0f37b1d567cb89eb787ae2b56ea2 /include/wlr
parent4453757fc9fa357288423ef3b54af3a1d7f35366 (diff)
wlr_output: Add preferred property (#1625)
* wlr_output: Indicate modes link * wlr_output: Introduce preferred flag This indicates an outputs preferred mode. * drm: Set preferred flag for an outputs preferred mode
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_output.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h
index d6761ee1..84791b2d 100644
--- a/include/wlr/types/wlr_output.h
+++ b/include/wlr/types/wlr_output.h
@@ -20,6 +20,7 @@ struct wlr_output_mode {
uint32_t flags; // enum wl_output_mode
int32_t width, height;
int32_t refresh; // mHz
+ bool preferred;
struct wl_list link;
};
@@ -71,7 +72,7 @@ struct wlr_output {
int32_t phys_width, phys_height; // mm
// Note: some backends may have zero modes
- struct wl_list modes;
+ struct wl_list modes; // wlr_output_mode::link
struct wlr_output_mode *current_mode;
int32_t width, height;
int32_t refresh; // mHz, may be zero