mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
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
This commit is contained in:
parent
4453757fc9
commit
cd60f40bbb
2 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue