Store drag-and-drop focus resource using QPointer

We need to clean up the target data device if it has been destroyed in
the middle of a drag and drop. Weston does a similar thing.

BUG: 425793
This commit is contained in:
Vlad Zahorodnii 2020-11-10 23:54:56 +02:00
parent 22bf1087a1
commit ed83cea823

View file

@ -126,7 +126,7 @@ public:
};
Mode mode = Mode::None;
DataDeviceInterface *source = nullptr;
DataDeviceInterface *target = nullptr;
QPointer<DataDeviceInterface> target;
SurfaceInterface *surface = nullptr;
PointerInterface *sourcePointer = nullptr;
TouchInterface *sourceTouch = nullptr;