From c5cf93a3ccbfb112853f77d1d7455dd2f9c7a5e0 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Fri, 5 Jul 2024 14:24:10 +0200 Subject: [PATCH] backends: fix needsFrame being stuck --- src/backend/Headless.cpp | 1 + src/backend/Wayland.cpp | 2 +- src/backend/drm/DRM.cpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/backend/Headless.cpp b/src/backend/Headless.cpp index fab0017..9c023d5 100644 --- a/src/backend/Headless.cpp +++ b/src/backend/Headless.cpp @@ -41,6 +41,7 @@ Aquamarine::CHeadlessOutput::~CHeadlessOutput() { bool Aquamarine::CHeadlessOutput::commit() { events.commit.emit(); state->onCommit(); + needsFrame = false; return true; } diff --git a/src/backend/Wayland.cpp b/src/backend/Wayland.cpp index ebadc04..f395147 100644 --- a/src/backend/Wayland.cpp +++ b/src/backend/Wayland.cpp @@ -570,8 +570,8 @@ bool Aquamarine::CWaylandOutput::commit() { readyForFrameCallback = true; events.commit.emit(); - state->onCommit(); + needsFrame = false; return true; } diff --git a/src/backend/drm/DRM.cpp b/src/backend/drm/DRM.cpp index a64c437..1583a40 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -1203,6 +1203,7 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) { state->onCommit(); lastCommitNoBuffer = !data.mainFB; + needsFrame = false; return ok; }