mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -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
|
|
@ -1385,7 +1385,7 @@ void scan_drm_connectors(struct wlr_drm_backend *drm) {
|
|||
mode->wlr_mode.refresh,
|
||||
mode->wlr_mode.preferred ? "(preferred)" : "");
|
||||
|
||||
wl_list_insert(&wlr_conn->output.modes, &mode->wlr_mode.link);
|
||||
wl_list_insert(wlr_conn->output.modes.prev, &mode->wlr_mode.link);
|
||||
}
|
||||
|
||||
wlr_conn->possible_crtcs = get_possible_crtcs(drm->fd, res, drm_conn);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue