backend/drm: save current refresh rate

wlr_output.refresh is populated by core wlr_output, and thus will
be zero for a custom mode with an unset refresh rate.

Save the refresh rate from the drmModeModeInfo in wlr_drm_connector
instead.

Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3791
This commit is contained in:
Simon Ser 2023-12-30 20:06:33 +01:00
parent ab924064f2
commit f81c3d93cd
2 changed files with 8 additions and 1 deletions

View file

@ -175,6 +175,8 @@ struct wlr_drm_connector {
// Last committed page-flip
struct wlr_drm_page_flip *pending_page_flip;
int32_t refresh;
};
struct wlr_drm_backend *get_drm_backend_from_backend(