diff --git a/src/wayland/tablet_v2_interface.cpp b/src/wayland/tablet_v2_interface.cpp index 334040c83b..902abe35e9 100644 --- a/src/wayland/tablet_v2_interface.cpp +++ b/src/wayland/tablet_v2_interface.cpp @@ -542,7 +542,7 @@ public: QVector m_strips; TabletPadGroupV2Interface *const m_padGroup; TabletSeatV2Interface *m_seat = nullptr; - SurfaceInterface *m_currentSurface = nullptr; + QPointer m_currentSurface; Display *const m_display; };