From 17a585b5d5547810b3f467a20b0943a9be1a4805 Mon Sep 17 00:00:00 2001 From: Weng Xuetian Date: Fri, 23 Apr 2021 13:36:18 -0700 Subject: [PATCH] Always apply size change from xdg_popup_reposition. BUG: 436106 --- src/xdgshellclient.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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());