From d8f07f43e5f0731f6872507e53b9d7ef431350fe Mon Sep 17 00:00:00 2001 From: YAMAMOTO Atsushi Date: Thu, 24 Apr 2025 17:09:25 +0900 Subject: [PATCH] Fix build error when tablet support is disabled When Qt is configured with -no-feature-tabletevent, QtWayland fails to build because code referencing QWaylandInputDevice::mTabletSeat is still compiled, even though mTabletSeat is only available when tablet event support is enabled. Pick-to: 6.9 6.8 Change-Id: Iad82ea47cfc64040772429f469d9104b75490891 Reviewed-by: Liang Qi Reviewed-by: Tasuku Suzuki --- src/plugins/platforms/wayland/qwaylandinputdevice.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/platforms/wayland/qwaylandinputdevice.cpp b/src/plugins/platforms/wayland/qwaylandinputdevice.cpp index 9224e5fb43f..fea7e77414c 100644 --- a/src/plugins/platforms/wayland/qwaylandinputdevice.cpp +++ b/src/plugins/platforms/wayland/qwaylandinputdevice.cpp @@ -641,8 +641,10 @@ void QWaylandInputDevice::setCursor(const QCursor *cursor, const QSharedPointer< if (mPointer) mPointer->updateCursor(); +#if QT_CONFIG(tabletevent) if (mTabletSeat) mTabletSeat->updateCursor(); +#endif } #endif