vcl/win/window/salframe.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit 8750c812c9b808ee980f7e0ce0e6ce91e75e1424 Author: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de> AuthorDate: Thu Aug 11 11:53:35 2022 +0200 Commit: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de> CommitDate: Mon Aug 15 14:00:50 2022 +0200 Fix mispositioning when only quickstarter is active When positioning a dialog via external UNO connection, and no LibreOffice window is visible (only quickstarter is running), the window was mispositioned. The ClientToScreen call changes the requested position, so skip that for dialogs too. Change-Id: I7656ec66b6aeccdc1fa306f5e05cf72b3cb87214 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138135 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de> diff --git a/vcl/win/window/salframe.cxx b/vcl/win/window/salframe.cxx index 598b5ea70fa8..6dad2785179c 100644 --- a/vcl/win/window/salframe.cxx +++ b/vcl/win/window/salframe.cxx @@ -1273,8 +1273,9 @@ void WinSalFrame::SetPosSize( tools::Long nX, tools::Long nY, tools::Long nWidth if( AllSettings::GetLayoutRTL() ) nX = (aParentRect.right - aParentRect.left) - nWidth-1 - nX; - //#110386#, do not transform coordinates for system child windows - if( !(GetWindowStyle( mhWnd ) & WS_CHILD) ) + //#110386#, do not transform coordinates for system child windows and dialogs + if( !(GetWindowStyle( mhWnd ) & WS_CHILD) && + !(GetWindowStyle( mhWnd ) & WS_DLGFRAME) ) { POINT aPt; aPt.x = nX;