[server] Fix crash on updating focused keyboard surface
ClosedPublic

Authored by graesslin on Oct 24 2016, 9:20 AM.

Details

Summary

In case the current selection does not have a DataSourceInterface
updating the focused keyboard surface resulted in a crash. The current
selection is sent to the DataDeviceInterface of the newly focused
client and thus a DataOfferInterface would be created for a null
DataSourceInterface.

This is a similar fix as D3148 and D3149.

Test Plan

Test case added which used to crash before

Diff Detail

Repository
R127 KWayland
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin updated this revision to Diff 7633.Oct 24 2016, 9:20 AM
graesslin retitled this revision from to [server] Fix crash on updating focused keyboard surface.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added a reviewer: Plasma on Wayland.
Restricted Application added a project: Plasma on Wayland. · View Herald TranscriptOct 24 2016, 9:20 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
bshah accepted this revision.Oct 25 2016, 9:52 AM
bshah added a reviewer: bshah.
This revision is now accepted and ready to land.Oct 25 2016, 9:52 AM
This revision was automatically updated to reflect the committed changes.