From 85f0f4e227b7f6896fc9fe6d6b9da4d568d2a9e7 Mon Sep 17 00:00:00 2001 From: Daniel van Vugt Date: Fri, 4 Oct 2024 15:50:07 +0800 Subject: [PATCH] clutter/frame-clock: Notify on all empty frames So that we maintain a perfectly balanced number of callbacks: dispatch == notify_ready + notify_presented Otherwise you can't put any useful logic inside notify_ready and be sure you're handling all the empty frames. Part-of: --- clutter/clutter/clutter-frame-clock.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clutter/clutter/clutter-frame-clock.c b/clutter/clutter/clutter-frame-clock.c index 0cc1f2eb4..234c58f9d 100644 --- a/clutter/clutter/clutter-frame-clock.c +++ b/clutter/clutter/clutter-frame-clock.c @@ -1003,8 +1003,7 @@ clutter_frame_clock_dispatch (ClutterFrameClock *frame_clock, frame_clock->state = CLUTTER_FRAME_CLOCK_STATE_PENDING_PRESENTED; break; case CLUTTER_FRAME_RESULT_IDLE: - frame_clock->state = CLUTTER_FRAME_CLOCK_STATE_IDLE; - maybe_reschedule_update (frame_clock); + clutter_frame_clock_notify_ready (frame_clock); break; } break;