<table><tr><td style="">davidedmundson created this revision.<br />davidedmundson added a reviewer: KWin.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />davidedmundson requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D29476">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Wayland has an entire new protocol for getting and setting clipboard<br />
when we don't have focus. Unfortunately this means reinventing<br />
QClipboard from the QPA.</p>

<p>Not mergable as-is, especially the hardcoded line in CMakeLists but<br />
uploaded to show direction.</p>

<p>It uses the newly agreed approach of using QtWayland generated classes<br />
in clients directly rather than writing full pimpl API-fixed wrappers first, <br />
as ultimately that didn't really help do anything.</p>

<p>Code is written so that it can be moved to KWindowSystem if needed by<br />
KDEConnect or others.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Copying and pasting all over the place</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>BRANCH</strong><div><div>davidedmundson/clipboard2</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D29476">https://phabricator.kde.org/D29476</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>klipper/CMakeLists.txt<br />
klipper/klipper.cpp<br />
klipper/klipper.h<br />
klipper/systemclipboard.cpp<br />
klipper/systemclipboard.h<br />
klipper/tests/CMakeLists.txt<br />
klipper/tests/paste.cpp</div></div></div><br /><div><strong>To: </strong>davidedmundson, KWin<br /><strong>Cc: </strong>plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>