From f81c3d93cd6f61b20ae784297679283438def8df Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 30 Dec 2023 20:06:33 +0100 Subject: 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 --- include/backend/drm/drm.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/backend') diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h index 88eacc6e..39a247b1 100644 --- a/include/backend/drm/drm.h +++ b/include/backend/drm/drm.h @@ -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( -- cgit v1.2.3