mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-11-17 04:56:00 +01:00
backends: fix needsFrame being stuck
This commit is contained in:
parent
d3bacb4600
commit
c5cf93a3cc
3 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue