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:
parent
c7af7adda6
commit
4220e7ac25
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue