Qt/macOS: Fix GUI freezes on Qt 6.8+

This commit is contained in:
Megamouse 2025-12-03 20:50:59 +01:00
parent dc27047ed4
commit 7d3cf831d5

View file

@ -435,6 +435,9 @@ QCoreApplication* create_application(std::span<char* const> qt_argv)
{
qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "0");
}
#elif __APPLE__
// set the QT_MTL_NO_TRANSACTION variable in order to prevent Qt GUI freeze
qputenv("QT_MTL_NO_TRANSACTION", "1");
#endif
bool use_high_dpi = true;