Always apply size change from xdg_popup_reposition.

BUG: 436106
This commit is contained in:
Weng Xuetian 2021-04-23 13:36:18 -07:00
parent 9ad83dafe6
commit 17a585b5d5
No known key found for this signature in database
GPG key ID: 8E8B898CBF2412F9

View file

@ -1880,10 +1880,7 @@ QRect XdgPopupClient::transientPlacement(const QRect &bounds) const
{
const XdgPositioner positioner = m_shellSurface->positioner();
QSize desiredSize = size();
if (desiredSize.isEmpty()) {
desiredSize = positioner.size();
}
const QSize desiredSize = positioner.size();
const QPoint parentPosition = transientFor()->framePosToClientPos(transientFor()->pos());