mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
backend/drm: preserve mode order from kernel
The kernel orders the mode list from highest to lowest. Preserve this ordering in the wlr_output.modes list.
This commit is contained in:
parent
f12bacf4b4
commit
923258b0be
2 changed files with 3 additions and 3 deletions
|
|
@ -457,8 +457,8 @@ struct wlr_output_mode *wlr_output_preferred_mode(struct wlr_output *output) {
|
|||
}
|
||||
}
|
||||
|
||||
// No preferred mode, choose the last one
|
||||
return wl_container_of(output->modes.prev, mode, link);
|
||||
// No preferred mode, choose the first one
|
||||
return wl_container_of(output->modes.next, mode, link);
|
||||
}
|
||||
|
||||
static void output_state_clear_buffer(struct wlr_output_state *state) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue