Skip to content

Commit

Permalink
wayland: band-aid for frame scheduling
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Jul 11, 2024
1 parent c4a5faf commit 46ce868
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/backend/Wayland.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 46ce868

Please sign in to comment.