Add support for version 3 of data device manager interface
ClosedPublic

Authored by graesslin on Dec 3 2017, 2:55 PM.

Details

Summary

The main difference compared to version 2 is additional drag and drop
actions. The source and destination can negotiate whether the data
should be copied or moved or the user should be asked for either or.
This seems to be important for GTK, but is not yet implemented in Qt.

The main motivation for adding support is that it is required by SDL to
launch on Wayland.

BUG: 386993

Test Plan

Extended test case, sdl apps now start

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 created this revision.Dec 3 2017, 2:55 PM
Restricted Application added projects: Plasma on Wayland, Frameworks. · View Herald TranscriptDec 3 2017, 2:55 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
graesslin requested review of this revision.Dec 3 2017, 2:55 PM
Restricted Application edited projects, added Plasma; removed Plasma on Wayland. · View Herald TranscriptDec 10 2017, 4:50 PM

lgtm

src/client/datadevice.cpp
177

delete nullptr is just fine

src/client/datadevicemanager.h
74

Should Ask perhaps become a bigger number in case stuff gets added in the middle later like Link or is that unlikely/incompatible?

Restricted Application edited projects, added Plasma on Wayland; removed Plasma. · View Herald TranscriptDec 10 2017, 4:56 PM
graesslin added inline comments.Dec 10 2017, 7:23 PM
src/client/datadevicemanager.h
74

It would be incompatible. The values are the same as the flags from the wayland protocol

Restricted Application edited projects, added Plasma; removed Plasma on Wayland. · View Herald TranscriptDec 10 2017, 7:23 PM
Restricted Application edited projects, added Plasma on Wayland; removed Plasma. · View Herald TranscriptDec 10 2017, 10:45 PM
davidedmundson accepted this revision.Dec 16 2017, 5:17 PM
This revision is now accepted and ready to land.Dec 16 2017, 5:17 PM
Restricted Application edited projects, added Plasma; removed Plasma on Wayland. · View Herald TranscriptDec 16 2017, 5:17 PM
This revision was automatically updated to reflect the committed changes.
Restricted Application edited projects, added Plasma on Wayland; removed Plasma. · View Herald TranscriptDec 26 2017, 7:42 PM