Store dnd icon surface in a QPointer

If the drag-and-drop icon has been destroyed, return a nullptr rather
than a dangling pointer.

BUG: 428399
This commit is contained in:
Vlad Zahorodnii 2020-10-29 09:05:06 +02:00
parent d5ca50deb3
commit 74c1b0f336

View file

@ -29,8 +29,7 @@ public:
SeatInterface *seat;
DataSourceInterface *source = nullptr;
SurfaceInterface *surface = nullptr;
SurfaceInterface *icon = nullptr;
QPointer<SurfaceInterface> icon;
QPointer<DataSourceInterface> selection;
struct Drag {