mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-11-17 00:15:59 +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() {
|
||||
// FIXME: limit fps to the committed framerate.
|
||||
needsFrame = true;
|
||||
|
||||
if (frameScheduled)
|
||||
return;
|
||||
|
|
|
@ -723,6 +723,8 @@ Hyprutils::Math::Vector2D Aquamarine::CWaylandOutput::cursorPlaneSize() {
|
|||
}
|
||||
|
||||
void Aquamarine::CWaylandOutput::scheduleFrame() {
|
||||
needsFrame = true;
|
||||
|
||||
if (frameScheduled)
|
||||
return;
|
||||
|
||||
|
|
|
@ -1304,6 +1304,8 @@ void Aquamarine::CDRMOutput::moveCursor(const Vector2D& coord) {
|
|||
}
|
||||
|
||||
void Aquamarine::CDRMOutput::scheduleFrame() {
|
||||
needsFrame = true;
|
||||
|
||||
if (connector->isPageFlipPending || connector->frameEventScheduled)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue