graesslin created this revision. graesslin added a reviewer: Plasma on Wayland. Restricted Application added a subscriber: plasma-devel. Restricted Application added a project: Plasma on Wayland.
REVISION SUMMARY This is a similar condition as https://phabricator.kde.org/D3148. If a DataDeviceInterface is created for the currently focused keyboard Surface the current selection is sent to the new DataDeviceInterface. If the current selection does not have a DataSourceInterface a DataOfferInterface for a null DataSourceInterface would be created and result in a crash. This change verifies that there is a DataSourcInterface on the current selection prior to sending out the selection. TEST PLAN A test case is added which simulates the condition by using two clients. REPOSITORY rKWAYLAND KWayland BRANCH selection-ddi-creation REVISION DETAIL https://phabricator.kde.org/D3149 AFFECTED FILES autotests/client/test_wayland_seat.cpp src/server/seat_interface.cpp EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: graesslin, #plasma_on_wayland Cc: plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas