diff --git a/src/xdgshellclient.cpp b/src/xdgshellclient.cpp index 77a0cac9f0..02f5c7775a 100644 --- a/src/xdgshellclient.cpp +++ b/src/xdgshellclient.cpp @@ -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());