From 46ce868cbb8ee4461bf4505de92b971c3dffde11 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Thu, 11 Jul 2024 20:54:23 +0200 Subject: [PATCH] wayland: band-aid for frame scheduling thanks @phonetic112 --- src/backend/Wayland.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/backend/Wayland.cpp b/src/backend/Wayland.cpp index d8331aa..834a060 100644 --- a/src/backend/Wayland.cpp +++ b/src/backend/Wayland.cpp @@ -620,6 +620,10 @@ void Aquamarine::CWaylandOutput::onFrameDone() { waylandState.frameCallback.reset(); readyForFrameCallback = false; + // FIXME: this is wrong, but otherwise we get bugs. + // thanks @phonetic112 + scheduleFrame(AQ_SCHEDULE_NEEDS_FRAME); + if (frameScheduledWhileWaiting) sendFrameAndSetCallback(); else