See https://github.com/wxWidgets/wxWidgets/issues/23585 . This patch reverts commit fb4f0b590c42a66263debf926617c00b157c9a in wxWidgets.