<table><tr><td style="">fvogt added a comment.
</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/D11586">View Revision</a></tr></table><br /><div><div><p>Looking at the <tt style="background: #ebebeb; font-size: 13px;">WAYLAND_DEBUG</tt> output I think I'm closer to understanding the issue now.</p>
<p>When the <tt style="background: #ebebeb; font-size: 13px;">QMenu::popup</tt> method is called, the chain "opened Event -> LayoutChanged -> GetLayout" gets started.<br />
The menu calculates its size and position, and sometime later creates the zxdg_positioner and finally gets the zxdg_popup_v6.</p>
<p>At some point later, the DBus call completes and the menu changes size. This happens with the surface, but the popup<br />
position can't retroactively be adjusted to fit.</p>
<p>I'm not sure why the menu size calculation reliably occurs after this method got called, though. That's the only point<br />
when the menu's sizeHint is wrong (exactly by the Y offset).</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D11586">https://phabricator.kde.org/D11586</a></div></div><br /><div><strong>To: </strong>fvogt, Plasma<br /><strong>Cc: </strong>plasma-devel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>