mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-11-17 03:46:00 +01:00
backends: set needsFrame for manually scheduled frames
This commit is contained in:
parent
890d6177b2
commit
ea92cba414
3 changed files with 5 additions and 0 deletions
|
@ -55,6 +55,7 @@ Hyprutils::Memory::CSharedPointer<IBackendImplementation> Aquamarine::CHeadlessO
|
||||||
|
|
||||||
void Aquamarine::CHeadlessOutput::scheduleFrame() {
|
void Aquamarine::CHeadlessOutput::scheduleFrame() {
|
||||||
// FIXME: limit fps to the committed framerate.
|
// FIXME: limit fps to the committed framerate.
|
||||||
|
needsFrame = true;
|
||||||
|
|
||||||
if (frameScheduled)
|
if (frameScheduled)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -723,6 +723,8 @@ Hyprutils::Math::Vector2D Aquamarine::CWaylandOutput::cursorPlaneSize() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Aquamarine::CWaylandOutput::scheduleFrame() {
|
void Aquamarine::CWaylandOutput::scheduleFrame() {
|
||||||
|
needsFrame = true;
|
||||||
|
|
||||||
if (frameScheduled)
|
if (frameScheduled)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
@ -1304,6 +1304,8 @@ void Aquamarine::CDRMOutput::moveCursor(const Vector2D& coord) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Aquamarine::CDRMOutput::scheduleFrame() {
|
void Aquamarine::CDRMOutput::scheduleFrame() {
|
||||||
|
needsFrame = true;
|
||||||
|
|
||||||
if (connector->isPageFlipPending || connector->frameEventScheduled)
|
if (connector->isPageFlipPending || connector->frameEventScheduled)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue