mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
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:
parent
ab924064f2
commit
f81c3d93cd
2 changed files with 8 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue