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() {
events.commit.emit();
state->onCommit();
needsFrame = false;
return true;
}

View File

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

View File

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