diff --git a/src/wayland/seat_interface.cpp b/src/wayland/seat_interface.cpp index b209a39deb..62b2095d12 100644 --- a/src/wayland/seat_interface.cpp +++ b/src/wayland/seat_interface.cpp @@ -316,6 +316,7 @@ void SeatInterfacePrivate::endDrag(quint32 serial) if (dragSource) { // TODO: Also check the current drag-and-drop action. if (dragTargetDevice && dragSource->isAccepted()) { + Q_EMIT q->dragDropped(); dragTargetDevice->drop(); dragSource->dropPerformed(); } else { diff --git a/src/wayland/seat_interface.h b/src/wayland/seat_interface.h index 8cfa013e69..d0554541c3 100644 --- a/src/wayland/seat_interface.h +++ b/src/wayland/seat_interface.h @@ -657,6 +657,11 @@ Q_SIGNALS: * @see dragSurface */ void dragSurfaceChanged(); + + /** Emitted when a drop ocurrs in a drag'n'drop operation. This is emitted + * before dragEnded + */ + void dragDropped(); /** * Emitted whenever the focused text input changed. * @see focusedTextInput