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:
parent
22bf1087a1
commit
ed83cea823
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue