<table><tr><td style="">elvisangelaccio created this revision.<br />Restricted Application added a project: Frameworks.
</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/D6685" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Commit <a href="https://phabricator.kde.org/R241:1e251d2f6a428fc5cc27a766c2a6d7b5e8fb2594" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">1e251d2f6a</a> does not work with KUrlNavigator drops because the<br />
drop event is processed at the KUrlNavigatorButton level. This means<br />
that passing a KUrlNavigator to KJobWidgets::setWindow() results in a<br />
wrong position for KIO::drop() menus (both on Wayland and X11).</p>
<p>To fix this issue, the DropJob needs to be associated to the<br />
KUrlNavigatorButton that received the drop event. This class is<br />
not exported, so we add a getter to KUrlNavigator that exposes<br />
the relevant KUrlNavigatorButton as QWidget (which is enough because<br />
the DropJob just needs to call mapToGlobal() on it).</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Use case in <a href="https://phabricator.kde.org/D6684" class="remarkup-link" target="_blank" rel="noreferrer">https://phabricator.kde.org/D6684</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D6685" rel="noreferrer">https://phabricator.kde.org/D6685</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/filewidgets/kurlnavigator.cpp<br />
src/filewidgets/kurlnavigator.h</div></div></div><br /><div><strong>To: </strong>elvisangelaccio, Frameworks, dfaure<br /></div>