Disable resizing only when explicitly asked

Do not assume that popups are unconditionally non-resizable. Only
disallow resizing if explicitly asked by minimum/maximum size match.

Change-Id: Ia8e3e4d074e4dc24b0ae4be56858e0d833eeebdb
Pick-to: 6.4
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
Mikolaj Boc 2022-08-15 10:58:56 +02:00
parent 8d728a0ed9
commit a4c0e442e5

View File

@ -241,9 +241,8 @@ bool QWasmWindow::isPointOnTitle(QPoint point) const
bool QWasmWindow::isPointOnResizeRegion(QPoint point) const
{
if (window()->flags().testFlag(Qt::Popup))
return false;
return resizeRegion().contains(point);
return (window()->maximumSize().isEmpty() || window()->minimumSize() != window()->maximumSize())
&& resizeRegion().contains(point);
}
QWasmCompositor::ResizeMode QWasmWindow::resizeModeAtPoint(QPoint point) const