diff options
author | Simon Ser <contact@emersion.fr> | 2021-11-22 19:29:30 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-11-22 19:31:59 +0100 |
commit | 3b93da70a0b9419c56958c0095ce441dbc1282b1 (patch) | |
tree | ed0a2dbb4a9402a8e8816530f30a6e222fd2b276 /include/backend | |
parent | 3d73b899ffdb6cdb45f69acfa5d7a914943dc592 (diff) |
backend/wayland: report parent presentation clock
There's no guarantee that the parent Wayland compositor uses
CLOCK_MONOTONIC for reporting presentation timestamps, they could
be using e.g. CLOCK_MONOTONIC_RAW or another system-specific clock.
Forward the value via wlr_backend_impl.get_presentation_clock.
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3254#note_1143061
Diffstat (limited to 'include/backend')
-rw-r--r-- | include/backend/wayland.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/backend/wayland.h b/include/backend/wayland.h index 3235494d..32783597 100644 --- a/include/backend/wayland.h +++ b/include/backend/wayland.h @@ -40,6 +40,7 @@ struct wlr_wl_backend { struct zwp_relative_pointer_manager_v1 *zwp_relative_pointer_manager_v1; struct wl_list seats; // wlr_wl_seat.link struct zwp_tablet_manager_v2 *tablet_manager; + clockid_t presentation_clock; struct wlr_drm_format_set shm_formats; struct wlr_drm_format_set linux_dmabuf_v1_formats; struct wl_drm *legacy_drm; |