From eed7943939524895225ab4cf4eb3a1fa880b42bf Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Wed, 17 Apr 2024 03:26:34 +0200 Subject: [PATCH] wayland/surface: fix the change signal for release points not being emitted --- src/wayland/surface.cpp | 2 +- src/wayland/surface_p.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wayland/surface.cpp b/src/wayland/surface.cpp index 38abf86c83..7a2a85093a 100644 --- a/src/wayland/surface.cpp +++ b/src/wayland/surface.cpp @@ -610,7 +610,7 @@ void SurfaceInterfacePrivate::applyState(SurfaceState *next) const bool visibilityChanged = bufferChanged && bool(current->buffer) != bool(next->buffer); const bool colorDescriptionChanged = next->colorDescriptionIsSet; const bool presentationModeHintChanged = next->presentationModeHintIsSet; - const bool bufferReleasePointChanged = next->releasePointIsSet; + const bool bufferReleasePointChanged = next->bufferIsSet && current->releasePoint != next->releasePoint; const QSizeF oldSurfaceSize = surfaceSize; const QSize oldBufferSize = bufferSize; diff --git a/src/wayland/surface_p.h b/src/wayland/surface_p.h index e96421fa44..657d7c51c0 100644 --- a/src/wayland/surface_p.h +++ b/src/wayland/surface_p.h @@ -59,7 +59,6 @@ struct SurfaceState bool contentTypeIsSet = false; bool presentationModeHintIsSet = false; bool colorDescriptionIsSet = false; - bool releasePointIsSet = false; qint32 bufferScale = 1; OutputTransform bufferTransform = OutputTransform::Normal; wl_list frameCallbacks;