Skip to content

Commit

Permalink
backends: set needsFrame for manually scheduled frames
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Jul 6, 2024
1 parent 890d617 commit ea92cba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/Headless.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/backend/Wayland.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,8 @@ Hyprutils::Math::Vector2D Aquamarine::CWaylandOutput::cursorPlaneSize() {
}

void Aquamarine::CWaylandOutput::scheduleFrame() {
needsFrame = true;

if (frameScheduled)
return;

Expand Down
2 changes: 2 additions & 0 deletions src/backend/drm/DRM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1304,6 +1304,8 @@ void Aquamarine::CDRMOutput::moveCursor(const Vector2D& coord) {
}

void Aquamarine::CDRMOutput::scheduleFrame() {
needsFrame = true;

if (connector->isPageFlipPending || connector->frameEventScheduled)
return;

Expand Down

0 comments on commit ea92cba

Please sign in to comment.