Commit ea28596a authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

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

BUG: 456817

(cherry picked from commit 4220e7ac)
parent 84277885
Pipeline #207092 passed with stage
in 26 minutes and 36 seconds
......@@ -541,7 +541,7 @@ public:
QVector<TabletPadStripV2Interface *> m_strips;
TabletPadGroupV2Interface *const m_padGroup;
TabletSeatV2Interface *m_seat = nullptr;
SurfaceInterface *m_currentSurface = nullptr;
QPointer<SurfaceInterface> m_currentSurface;
Display *const m_display;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment