Skip to content

client: Fix crash on dnd updates after client facing drag ends

A platform drag and a application-facing drag have two different
lifespans.

The platform drag lasts until all mimedata is transferred and the client
receiving the drops marks it as finished.

The application facing QDrag lasts until the client deletes it. We can
get a crash if we get updates during this time.

The drop event is guarded, but not the action negotiation.

Pick-to: 6.6
Change-Id: Ib9c047f04d65883105d4cd3f169637d0e038a63f
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
(cherry picked from commit 22daca49b807fefba58113a06b86df4274e49f62)

Appears to fix crashes: https://bugs.kde.org/show_bug.cgi?id=470925 https://bugs.kde.org/show_bug.cgi?id=472313

See also: plasma/kwin!4300 (closed)

Merge request reports