X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/98ebf9194b9211a1ddd244083383bd8a4469b7ed..2121eb69fa8d49f4484f7170159e61f2e8885de4:/src/msw/window.cpp diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 50d4d88eb7..eb18a5e6b1 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -1701,6 +1701,13 @@ void wxWindowMSW::DoGetPosition(int *x, int *y) const // children, not for the dialogs/frames if ( !IsTopLevel() ) { + if ( wxTheApp->GetLayoutDirection() == wxLayout_RightToLeft ) + { + // In RTL mode, we want the logical left x-coordinate, + // which would be the physical right x-coordinate. + point.x = rect.right; + } + // Since we now have the absolute screen coords, if there's a // parent we must subtract its top left corner if ( parent )