vcl/win/window/salframe.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit a426e2f92650497a59e246695521f58122adcdb6 Author: Thomas Rogenmoser <[email protected]> AuthorDate: Mon Feb 23 21:39:30 2026 +0000 Commit: Heiko Tietze <[email protected]> CommitDate: Fri Feb 27 10:42:49 2026 +0100 tdf#141381 vcl: enable maximize button for resizable dialogs on win Currently, the Windows VCL backend explicitly suppresses the WS_MAXIMIZEBOX style for windows with a parent (!hWndParent), even if they are flagged as SIZEABLE. This prevents users from maximizing resizable dialogs (like the CSV Import dialog), creating an inconsistent UX where a window can be stretched manually but not maximized. This patch removes the artificial restriction in SalFrame::UpdateStyle. This brings Windows behavior in parity with Linux/KDE backends, where resizable dialogs generally allow maximizing. Change-Id: Iee26b3eedbb066cb571c5c3c9598233ce25f6853 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200343 Reviewed-by: Heiko Tietze <[email protected]> Tested-by: Jenkins diff --git a/vcl/win/window/salframe.cxx b/vcl/win/window/salframe.cxx index 603c57048544..a551e4b09926 100644 --- a/vcl/win/window/salframe.cxx +++ b/vcl/win/window/salframe.cxx @@ -372,9 +372,7 @@ SalFrame* ImplSalCreateFrame( WinSalInstance* pInst, if ( nSalFrameStyle & SalFrameStyleFlags::SIZEABLE ) { pFrame->mbSizeBorder = true; - nSysStyle |= WS_THICKFRAME; - if ( !hWndParent ) - nSysStyle |= WS_MAXIMIZEBOX; + nSysStyle |= (WS_THICKFRAME | WS_MAXIMIZEBOX); } else pFrame->mbFixBorder = true;
