diff --git a/src/wayland/tablet_v2_interface.cpp b/src/wayland/tablet_v2_interface.cpp index 59a4b2fb28..8af806039b 100644 --- a/src/wayland/tablet_v2_interface.cpp +++ b/src/wayland/tablet_v2_interface.cpp @@ -91,7 +91,7 @@ public: TabletCursorV2 *const q; quint32 m_serial = 0; - SurfaceInterface *m_surface = nullptr; + QPointer m_surface; QPoint m_hotspot; };