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 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io> (cherry picked from commit a4c0e442e5f4f3ca2ed8ea81883db31e464a0209) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
a6276ca0e4
commit
8ad7e7d6a0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user