Skip to content

Instantly share code, notes, and snippets.

@Billli11
Created October 31, 2023 03:38
Show Gist options
  • Save Billli11/f537bd6b54c18621c9be639a611fa30f to your computer and use it in GitHub Desktop.
Save Billli11/f537bd6b54c18621c9be639a611fa30f to your computer and use it in GitHub Desktop.
0001-chase-wlroots-4411.patch
From f4df45b2b69136060051971cbaa7e412e54165df Mon Sep 17 00:00:00 2001
From: Bill Li <billli11hkb@gmail.com>
Date: Tue, 31 Oct 2023 11:11:02 +0800
Subject: [PATCH] chase wlroots!4411
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4411
---
sway/desktop/output.c | 4 +---
1 file changed, 1 insertion(+), 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;
--
2.42.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment