backends: fix needsFrame being stuck

This commit is contained in:
Vaxry 2024-07-05 14:24:10 +02:00
parent d3bacb4600
commit c5cf93a3cc
3 changed files with 3 additions and 1 deletions

View file

@ -41,6 +41,7 @@ Aquamarine::CHeadlessOutput::~CHeadlessOutput() {
bool Aquamarine::CHeadlessOutput::commit() { bool Aquamarine::CHeadlessOutput::commit() {
events.commit.emit(); events.commit.emit();
state->onCommit(); state->onCommit();
needsFrame = false;
return true; return true;
} }

View file

@ -570,8 +570,8 @@ bool Aquamarine::CWaylandOutput::commit() {
readyForFrameCallback = true; readyForFrameCallback = true;
events.commit.emit(); events.commit.emit();
state->onCommit(); state->onCommit();
needsFrame = false;
return true; return true;
} }

View file

@ -1203,6 +1203,7 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) {
state->onCommit(); state->onCommit();
lastCommitNoBuffer = !data.mainFB; lastCommitNoBuffer = !data.mainFB;
needsFrame = false;
return ok; return ok;
} }