<table><tr><td style="">mart created this revision.<br />Restricted Application added projects: Plasma, Frameworks.<br />Restricted Application added subscribers: Frameworks, plasma-devel.
</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/D5912" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>take into account size hints also when adjusting with synctomainitemsize<br />
which sometimes has to be executed right before adjusting from the layout<br />
hints, giving one wrong resize</p>
<p>introduce geometryUpdatesBlocked, which stops the dialog<br />
from syncing which is useful when both visual parent and item<br />
contents gets updated in one go (the tooltip) it is not<br />
yet exported to qml and it shouldn't as is dangerous, but<br />
kicker may make use of it between changing the submenu model and<br />
the visualparent</p>
<p>alternative implementations may be:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">a method that takes both main item and visual parent</li>
<li class="remarkup-list-item">delaying with a timer setGeometry (ouch)</li>
</ul>
<p>this part can also be left behind for now and see if the rest is good enough</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>no visual glitches visible anymore in wayland when moving the tooltip<br />
in the taskbar, x11 ok too</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R242 Plasma Framework (Library)</div></div></div><br /><div><strong>BRANCH</strong><div><div>phab/dialogresize</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5912" rel="noreferrer">https://phabricator.kde.org/D5912</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/declarativeimports/core/tooltip.cpp<br />
src/plasmaquick/dialog.cpp<br />
src/plasmaquick/dialog.h</div></div></div><br /><div><strong>To: </strong>mart, Plasma<br /><strong>Cc: </strong>plasma-devel, Frameworks, ZrenBot, spstarr, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, lukas<br /></div>