summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurĂ©lien Brooke <[email protected]>2025-03-07 13:33:01 +0100
committerAurĂ©lien Brooke <[email protected]>2025-06-02 15:22:24 +0000
commit07f81efabf8192c991efacb61cdd867f936751ac (patch)
tree936faec8dd96a11d97dcaee0798297077e9403ab
parentc258d5cb0a42b32e935df1cd142be9457dc050c8 (diff)
Fix build with -disable-deprecated-up-toHEADdev
The cursorSurfaceRequest signal is removed in this case, but we were trying to connect to it unconditionally. Add the same #if QT_DEPRECATED_SINCE as the header to fix this. Amends bf60784393552a605d166330d3fdc87e900e8a0b. Pick-to: 6.10 6.9 6.8 Change-Id: Ibf9aee069f333df3d15016e744b572ef6c4c9dab Reviewed-by: David Redondo <[email protected]>
-rw-r--r--src/compositor/compositor_api/qwaylandseat.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compositor/compositor_api/qwaylandseat.cpp b/src/compositor/compositor_api/qwaylandseat.cpp
index 3fe80a58c..362e9fa0f 100644
--- a/src/compositor/compositor_api/qwaylandseat.cpp
+++ b/src/compositor/compositor_api/qwaylandseat.cpp
@@ -160,8 +160,10 @@ QWaylandSeat::QWaylandSeat(QWaylandCompositor *compositor, CapabilityFlags capab
if (compositor->isCreated())
initialize();
+#if QT_DEPRECATED_SINCE(6, 1)
// Support deprecated signal for backward compatibility
connect(this, &QWaylandSeat::cursorSurfaceRequested, this, &QWaylandSeat::cursorSurfaceRequest);
+#endif
}
/*!