wayland: build fix on older qt versions

This commit is contained in:
Eric Warmenhoven 2024-05-31 19:24:11 -04:00 committed by LibretroAdmin
parent 2f1dd3e84f
commit a13b0f090d

View File

@ -4235,9 +4235,11 @@ static void* ui_application_qt_initialize(void)
#ifdef Q_OS_UNIX
setlocale(LC_NUMERIC, "C");
#ifdef HAVE_WAYLAND
#if (QT_VERSION >= QT_VERSION_CHECK(5, 7, 0))
// This needs to match the name of the .desktop file in order for windows to be correctly associated on Wayland
ui_application.app->setDesktopFileName(WAYLAND_APP_ID);
#endif
#endif
#endif
{
/* Can't declare the pixmap at the top, because: "QPixmap: Must construct a QGuiApplication before a QPixmap" */