[wxWidgets/wxWidgets] 0a11ed: Fix screen position of child windows in RTL layout

0 views
Skip to first unread message

VZ

unread,
Apr 4, 2026, 12:53:37 PM (7 days ago) Apr 4
to wx-co...@googlegroups.com
Branch: refs/heads/master
Home: https://github.com/wxWidgets/wxWidgets
Commit: 0a11eda298331b7e5d2e7be77e24fca73dc21b45
https://github.com/wxWidgets/wxWidgets/commit/0a11eda298331b7e5d2e7be77e24fca73dc21b45
Author: AliKet <AliDe...@yahoo.fr>
Date: 2026-03-30 (Mon, 30 Mar 2026)

Changed paths:
M interface/wx/window.h
M src/common/wincmn.cpp

Log Message:
-----------
Fix screen position of child windows in RTL layout

GetScreenPosition() now always returns the upper-left corner position
of child windows in RTL layout under all platforms.


Commit: dc2eb03c0be0d96aec0b8e550a7b6995c541d298
https://github.com/wxWidgets/wxWidgets/commit/dc2eb03c0be0d96aec0b8e550a7b6995c541d298
Author: AliKet <AliDe...@yahoo.fr>
Date: 2026-03-30 (Mon, 30 Mar 2026)

Changed paths:
M src/generic/scrlwing.cpp

Log Message:
-----------
Fix auto-scrolling windows in RTL layout

Auto-scrolling stopped working after commit 678382f568 (2026-02-22,
wxScrolled<>: fix testing mouse position in autoscroll zone) and was
fixed by the parent commit. As a consequence, scrolling direction is
inverted now in RTL layout, and this commit just fixes it.


Commit: 07cdc6b311451bea5b972c614ba6a31b4abfcbc9
https://github.com/wxWidgets/wxWidgets/commit/07cdc6b311451bea5b972c614ba6a31b4abfcbc9
Author: AliKet <AliDe...@yahoo.fr>
Date: 2026-03-30 (Mon, 30 Mar 2026)

Changed paths:
M src/msw/graphics.cpp

Log Message:
-----------
Fix drawing with GDI+ initialized with a HDC in RTL layout on wxMSW

Although GDI+ doesn't honor the LAYOUT_RTL flag set on the associated HDC,
drawing on such dc with GDI+ may have unexpected results when that dc is
then fed to some GDI functions, like for example UpdateLayeredWindow():
a double mirroring can happen, which can be seen when drawing the rubberband
in the drawing sample.


Commit: a492cfef9cbca9eae74e1afa7f4f93ef3327b3aa
https://github.com/wxWidgets/wxWidgets/commit/a492cfef9cbca9eae74e1afa7f4f93ef3327b3aa
Author: AliKet <AliDe...@yahoo.fr>
Date: 2026-03-30 (Mon, 30 Mar 2026)

Changed paths:
M src/msw/graphics.cpp

Log Message:
-----------
Store/Restore the original layout of the HDC associated with the GDI+ context

The layout settings on the HDC (such as LAYOUT_RTL or LAYOUT_BITMAPORIENTATIONPRESERVED)
are saved and cleared from the HDC during construction and restored on destruction, ensuring
operations done with the wxGCDC don't affect the layout state of the original wxDC.


Commit: 941ec0c8cb7471f7d42ff667085b6baf6764d1d6
https://github.com/wxWidgets/wxWidgets/commit/941ec0c8cb7471f7d42ff667085b6baf6764d1d6
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-04-01 (Wed, 01 Apr 2026)

Changed paths:
M include/wx/tipwin.h

Log Message:
-----------
Avoid harmless MSVC warning about converting pointer to bool

Do it explicitly to silence it.


Commit: c00f22d868bae53610a1183f78c7fa87f4202930
https://github.com/wxWidgets/wxWidgets/commit/c00f22d868bae53610a1183f78c7fa87f4202930
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-04-02 (Thu, 02 Apr 2026)

Changed paths:
M include/wx/gtk/private/object.h
M src/gtk/dataview.cpp

Log Message:
-----------
Use wxGtkObject instead of manual g_object_unref()

No real changes, just use the RAII helper instead of manual memory
management added in c456ccb28f (Fix memory leak in
wxDataViewChoiceRenderer on GTK, 2026-03-31).


Commit: 08038496d4cdebff9bfae7319dea1a4212cd41ea
https://github.com/wxWidgets/wxWidgets/commit/08038496d4cdebff9bfae7319dea1a4212cd41ea
Author: Blake-Madden <66873089+B...@users.noreply.github.com>
Date: 2026-04-02 (Thu, 02 Apr 2026)

Changed paths:
M interface/wx/editlbox.h

Log Message:
-----------
Document subcontrol access within wxEditableListBox

Closes #26326.


Commit: 2d6aaa14d5a45fc9ac891bf9cf7e521bdbe4b74a
https://github.com/wxWidgets/wxWidgets/commit/2d6aaa14d5a45fc9ac891bf9cf7e521bdbe4b74a
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-04-03 (Fri, 03 Apr 2026)

Changed paths:
M interface/wx/listctrl.h

Log Message:
-----------
Improve wxListCtrl::GetColumn() documentation

Mention that the index parameter must be valid as it is may not be
clear.

See #26337.


Commit: a62b29135380fe46eaa06307ffe3722506f357e1
https://github.com/wxWidgets/wxWidgets/commit/a62b29135380fe46eaa06307ffe3722506f357e1
Author: Florian Larysch <f...@n621.de>
Date: 2026-04-03 (Fri, 03 Apr 2026)

Changed paths:
M src/unix/glegl.cpp

Log Message:
-----------
Fix eglDestroySurface() argument order when using EGL with X11

eglDestroySurface takes the display first and the surface second rather
than the other way around. Since both EGLDisplay and EGLSurface are just
typedef'd to void* this doesn't raise a compiler warning. This currently
doesn't crash at runtime because Mesa validates the display pointer
against a list of known good values and fails gracefully, but it still
causes a resource leak.

The wrong call was present since the changes of 23ccdb2 (Improve and
document wxGLCanvas::CreateSurface(), 2023-03-21), see #23366.

Closes #26341.


Commit: ec1ac0879a09a182ed5e1c087900a5fe9fbb05ca
https://github.com/wxWidgets/wxWidgets/commit/ec1ac0879a09a182ed5e1c087900a5fe9fbb05ca
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-04-03 (Fri, 03 Apr 2026)

Changed paths:
M src/unix/glegl.cpp

Log Message:
-----------
Compare EGL surface with EGL_NO_SURFACE for consistency

No real changes because EGL_NO_SURFACE is just 0 anyhow, but write the
check for the surface being valid in a way consistent with all the other
ones in this file.


Commit: 657960fc0a15d589230709285ebedfe81fb04050
https://github.com/wxWidgets/wxWidgets/commit/657960fc0a15d589230709285ebedfe81fb04050
Author: Robert Roebling <robert....@gmail.com>
Date: 2026-04-04 (Sat, 04 Apr 2026)

Changed paths:
M src/msw/notebook.cpp

Log Message:
-----------
Update wxNotebook after changing page in wxMSW dark mode

We already did this when the page was changed by the user, but not when
changing it programmatically and the previously selected tab continued
to wrongly appear selected.

Fix this by moving the call to Refresh() to UpdateSelection() itself,
which is always called when the selection changes, instead of doing it
only in MSWOnNotify().

Closes #26281.

Closes #26329.

Co-authored-by: Vadim Zeitlin <va...@wxwidgets.org>


Commit: e0321c2ddf9732e5b3e6b6473cb9e49e8c27b013
https://github.com/wxWidgets/wxWidgets/commit/e0321c2ddf9732e5b3e6b6473cb9e49e8c27b013
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-04-04 (Sat, 04 Apr 2026)

Changed paths:
M samples/notebook/notebook.cpp

Log Message:
-----------
Fix layout of new page in the notebook sample

Use sizer to position the buttons on the new pages instead of hardcoding
the buttons positions which, unsurprisingly, didn't work well and
resulted in buttons overlapping each other in high DPI.


Commit: fba6003bf117efb332f938c9a4a9914d50acfc6c
https://github.com/wxWidgets/wxWidgets/commit/fba6003bf117efb332f938c9a4a9914d50acfc6c
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-04-04 (Sat, 04 Apr 2026)

Changed paths:
M src/msw/textctrl.cpp

Log Message:
-----------
Take default style into account in wxMSW wxTextCtrl::SetValue()

Previously this only worked for plain EDIT controls but not for the
controls with wxTE_RICH[2] style because WM_SETTEXT ignores the current
text style for the latter.

Work around this by using EM_REPLACESEL for them instead.

Closes #26320.

Closes #26321.


Commit: e9ab0194c1173f4cd763175e5b523156b0e52438
https://github.com/wxWidgets/wxWidgets/commit/e9ab0194c1173f4cd763175e5b523156b0e52438
Author: Filip Hejsek <filip....@gmail.com>
Date: 2026-04-04 (Sat, 04 Apr 2026)

Changed paths:
M interface/wx/stc/stc.h
M src/stc/ScintillaWX.cpp
M src/stc/ScintillaWX.h
M src/stc/stc.cpp
M src/stc/stc.cpp.in
M src/stc/stc.interface.h.in

Log Message:
-----------
Fix wxStyledTextCtrl::Get/SetUseAntiAliasing()

Get/SetUseAntiAliasing() was originally added as a wxWidgets-specific
extension of Scintilla, using extraFontFlag to store the setting. When
Scintilla upstream added its own implementation of the same feature in
the form of the SCI_SETFONTQUALITY message, the same field was used, but
with incompatible values. Combined with other changes that happend since
then, the result is that now SetUseAntiAliasing(true) does the opposite
of what it is supposed to do. See #26339 for a more detailed analysis of
the history.

Fix this by removing all remaining traces of the original implementation
of SetUseAntiAliasing(), and instead translating SetUseAntiAliasing()
calls into SetFontQuality().

Closes #26339.

Closes #26342.


Commit: 9442c840ff5a367c66278eb254acab58f452f5df
https://github.com/wxWidgets/wxWidgets/commit/9442c840ff5a367c66278eb254acab58f452f5df
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-04-04 (Sat, 04 Apr 2026)

Changed paths:
M src/aui/auibook.cpp

Log Message:
-----------
Fix wxAuiNotebook selection after Unsplit()

Both the selection and the actually shown page may change after
unsplitting, but we didn't update the internal state correctly,
resulting in visibly broken notebook.

Do it now by forcing the selection to switch to the actually selected
page.

Closes #26343.


Commit: 4254defbab703774f1c4e9455195efc47bbbc2c4
https://github.com/wxWidgets/wxWidgets/commit/4254defbab703774f1c4e9455195efc47bbbc2c4
Author: Tim Stahlhut <stah...@gmail.com>
Date: 2026-04-04 (Sat, 04 Apr 2026)

Changed paths:
M src/gtk/utilsgtk.cpp

Log Message:
-----------
Fix wxGTK/Windows build after wxMoveToTrash() addition

The implementation using glib, added in 400780a33f (Add wxMoveToTrash
function, 2026-02-28), should only be used under Unix as Windows
provides its own implementation.

See #26256.

Closes #26336.


Commit: 2c7c88b326f90aaadda523ec0f4468ee4d0a71ec
https://github.com/wxWidgets/wxWidgets/commit/2c7c88b326f90aaadda523ec0f4468ee4d0a71ec
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-04-04 (Sat, 04 Apr 2026)

Changed paths:
M interface/wx/window.h
M src/common/wincmn.cpp
M src/generic/scrlwing.cpp
M src/msw/graphics.cpp

Log Message:
-----------
Merge branch 'win-scrnpos-rtl' of github.com:AliKet/wxWidgets

More RTL fixes: for getting the window position on the screen,
auto-scrolling in wxScrolled and wxGraphicsContext in wxMSW.

See #26284.


Commit: 880c280c81fb0975f8f4586bf39d357b91ac2360
https://github.com/wxWidgets/wxWidgets/commit/880c280c81fb0975f8f4586bf39d357b91ac2360
Author: Blake-Madden <66873089+B...@users.noreply.github.com>
Date: 2026-04-04 (Sat, 04 Apr 2026)

Changed paths:
M include/wx/dcsvg.h
M interface/wx/dcsvg.h
M src/common/dcsvg.cpp

Log Message:
-----------
Add way to get generated SVG content from wxSVGFileDC
This can be retrieved even if the content wasn't written to a file (e.g., file name was empty in the CTORs).


Commit: 9a5b1b6d66cbf6b11ef4ec8c79317eef86f49ba0
https://github.com/wxWidgets/wxWidgets/commit/9a5b1b6d66cbf6b11ef4ec8c79317eef86f49ba0
Author: Blake-Madden <66873089+B...@users.noreply.github.com>
Date: 2026-04-04 (Sat, 04 Apr 2026)

Changed paths:
M src/common/dcsvg.cpp

Log Message:
-----------
Fix IsOK() returning false when bitmap processing was actually successful


Commit: 719c678abb6ed5edbaa8a1ee5c3d45953eca10a3
https://github.com/wxWidgets/wxWidgets/commit/719c678abb6ed5edbaa8a1ee5c3d45953eca10a3
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-04-04 (Sat, 04 Apr 2026)

Changed paths:
M include/wx/dcsvg.h
M interface/wx/dcsvg.h
M src/common/dcsvg.cpp

Log Message:
-----------
Merge branch 'SVGText' of github.com:Blake-Madden/wxWidgets

Add way to get generated SVG content from wxSVGFileDC.

See #26344.


Compare: https://github.com/wxWidgets/wxWidgets/compare/c456ccb28f96...719c678abb6e

To unsubscribe from these emails, change your notification settings at https://github.com/wxWidgets/wxWidgets/settings/notifications
Reply all
Reply to author
Forward
0 new messages