<table><tr><td style="">davidedmundson created this revision.<br />davidedmundson added a reviewer: KWin.<br />Herald added a project: KWin.<br />Herald added a subscriber: kwin.<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/D29332">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Change so we track track and set a DataSource instead of a DataDevice</p>
<p>This means we have to reverse a connection:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">we need to update Seat with our selection only when our selection is</li>
</ul>
<p>received by the DataDeviceInterface</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">we no longer need to track and watch a dataDevice for changes after</li>
</ul>
<p>the seat emits selectionChange</p>
<p>Change so that we handle an AbstractDataSource. Meaning we can paste<br />
from clipboard managers.</p>
<p>Testing done:<br />
There is an existing xwayland-selections_test<br />
This still passes.</p>
<p>Copied from:<br />
wl-copy(wlr) to firefox (x)<br />
firefox to wl-paste<br />
firefox to kate (wayland)<br />
kate to firefox</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R108 KWin</div></div></div><br /><div><strong>BRANCH</strong><div><div>xwl_update</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D29332">https://phabricator.kde.org/D29332</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>xwl/clipboard.cpp<br />
xwl/clipboard.h<br />
xwl/dnd.cpp<br />
xwl/selection_source.cpp<br />
xwl/selection_source.h</div></div></div><br /><div><strong>To: </strong>davidedmundson, KWin<br /><strong>Cc: </strong>kwin, Orage, cacarry, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, mkulinski, ragreen, jackyalcine, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>