diff options
author | Simon Ser <contact@emersion.fr> | 2023-12-30 20:06:33 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-12-30 20:06:33 +0100 |
commit | f81c3d93cd6f61b20ae784297679283438def8df (patch) | |
tree | 3b406bbd30b46965b9eff201f62b4d5509cce59f /include | |
parent | ab924064f230cce2aea2e45bd113adea9d37f286 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/backend/drm/drm.h | 2 |
1 files changed, 2 insertions, 0 deletions
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( |