diff options
author | 2023-10-31 11:11:02 +0800 | |
---|---|---|
committer | 2023-10-31 09:51:19 +0100 | |
commit | 6f6b82793d95e3c10d54bcf21ca3f0c76c44b882 (patch) | |
tree | 371a6242604ab25d9fabc2a8854ce6150a6ffbd6 | |
parent | xdg-shell: send maximized if tiled isn't supported (diff) | |
download | sway-6f6b82793d95e3c10d54bcf21ca3f0c76c44b882.tar.gz sway-6f6b82793d95e3c10d54bcf21ca3f0c76c44b882.tar.zst sway-6f6b82793d95e3c10d54bcf21ca3f0c76c44b882.zip |
chase wlroots!4411
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4411
fix #7802
-rw-r--r-- | sway/desktop/output.c | 4 |
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) { | |||
706 | 706 | ||
707 | if (output->max_render_time != 0) { | 707 | if (output->max_render_time != 0) { |
708 | struct timespec now; | 708 | struct timespec now; |
709 | clockid_t presentation_clock | 709 | clock_gettime(CLOCK_MONOTONIC, &now); |
710 | = wlr_backend_get_presentation_clock(server.backend); | ||
711 | clock_gettime(presentation_clock, &now); | ||
712 | 710 | ||
713 | const long NSEC_IN_SECONDS = 1000000000; | 711 | const long NSEC_IN_SECONDS = 1000000000; |
714 | struct timespec predicted_refresh = output->last_presentation; | 712 | struct timespec predicted_refresh = output->last_presentation; |