Skip to content

Commit

Permalink
backends: fix needsFrame being stuck
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Jul 5, 2024
1 parent d3bacb4 commit c5cf93a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/backend/Headless.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Aquamarine::CHeadlessOutput::~CHeadlessOutput() {
bool Aquamarine::CHeadlessOutput::commit() {
events.commit.emit();
state->onCommit();
needsFrame = false;
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion src/backend/Wayland.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -570,8 +570,8 @@ bool Aquamarine::CWaylandOutput::commit() {
readyForFrameCallback = true;

events.commit.emit();

state->onCommit();
needsFrame = false;

return true;
}
Expand Down
1 change: 1 addition & 0 deletions src/backend/drm/DRM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1203,6 +1203,7 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) {
state->onCommit();

lastCommitNoBuffer = !data.mainFB;
needsFrame = false;

return ok;
}
Expand Down

0 comments on commit c5cf93a

Please sign in to comment.