From ed83cea8234bb32b10adc2909e3acc6ab422b384 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 10 Nov 2020 23:54:56 +0200 Subject: [PATCH] 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 --- src/wayland/seat_interface_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/seat_interface_p.h b/src/wayland/seat_interface_p.h index 35929a3544..81ebe4f9e3 100644 --- a/src/wayland/seat_interface_p.h +++ b/src/wayland/seat_interface_p.h @@ -126,7 +126,7 @@ public: }; Mode mode = Mode::None; DataDeviceInterface *source = nullptr; - DataDeviceInterface *target = nullptr; + QPointer target; SurfaceInterface *surface = nullptr; PointerInterface *sourcePointer = nullptr; TouchInterface *sourceTouch = nullptr;