backends: set needsFrame for manually scheduled frames

This commit is contained in:
Vaxry 2024-07-06 11:26:42 +02:00
parent 890d6177b2
commit ea92cba414
3 changed files with 5 additions and 0 deletions

View File

@ -55,6 +55,7 @@ Hyprutils::Memory::CSharedPointer<IBackendImplementation> Aquamarine::CHeadlessO
void Aquamarine::CHeadlessOutput::scheduleFrame() {
// FIXME: limit fps to the committed framerate.
needsFrame = true;
if (frameScheduled)
return;

View File

@ -723,6 +723,8 @@ Hyprutils::Math::Vector2D Aquamarine::CWaylandOutput::cursorPlaneSize() {
}
void Aquamarine::CWaylandOutput::scheduleFrame() {
needsFrame = true;
if (frameScheduled)
return;

View File

@ -1304,6 +1304,8 @@ void Aquamarine::CDRMOutput::moveCursor(const Vector2D& coord) {
}
void Aquamarine::CDRMOutput::scheduleFrame() {
needsFrame = true;
if (connector->isPageFlipPending || connector->frameEventScheduled)
return;