wayland/tablet_v2: Keep also the pad surface in a QPointer

This way we make sure that we don't explode if for some reason the
surface is destroyed (e.g. it's closed).
This will make it work exactly like the other references to
SurfaceInterface.

BUG: 456817
This commit is contained in:
Aleix Pol 2022-07-20 15:20:38 +02:00
parent c7af7adda6
commit 4220e7ac25

View file

@ -542,7 +542,7 @@ public:
QVector<TabletPadStripV2Interface *> m_strips; QVector<TabletPadStripV2Interface *> m_strips;
TabletPadGroupV2Interface *const m_padGroup; TabletPadGroupV2Interface *const m_padGroup;
TabletSeatV2Interface *m_seat = nullptr; TabletSeatV2Interface *m_seat = nullptr;
SurfaceInterface *m_currentSurface = nullptr; QPointer<SurfaceInterface> m_currentSurface;
Display *const m_display; Display *const m_display;
}; };