Commit 978ff1aa authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

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
parent a8c4f219
......@@ -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;
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