aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2023-10-31 11:11:02 +0800
committerFurkan Sahin <furkan-dev@proton.me>2023-10-31 11:11:02 +0800
commit5ab15b3a85145694ef0531609aa5b07cf1f67356 (patch)
tree371a6242604ab25d9fabc2a8854ce6150a6ffbd6
parentda5b30cf0a9e524d032350fac72bfa3113a51640 (diff)
chase wlroots!4411
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4411 fix #7802
-rw-r--r--sway/desktop/output.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index 0670b3dd..f2bc4a67 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -706,9 +706,7 @@ static void handle_frame(struct wl_listener *listener, void *user_data) {
if (output->max_render_time != 0) {
struct timespec now;
- clockid_t presentation_clock
- = wlr_backend_get_presentation_clock(server.backend);
- clock_gettime(presentation_clock, &now);
+ clock_gettime(CLOCK_MONOTONIC, &now);
const long NSEC_IN_SECONDS = 1000000000;
struct timespec predicted_refresh = output->last_presentation;