From 102c0a96ed5cbc1288e1654b7e12811f1ea378b5 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 3 Jan 2022 20:03:06 +0300 Subject: [PATCH] Re-enable XWayland by default on GNOME. Should fix #17457, fix #17468, fix #17476, fix #17477, fix #1747, fix #17481, fix #17498. --- Telegram/SourceFiles/core/launcher.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/core/launcher.cpp b/Telegram/SourceFiles/core/launcher.cpp index b9b927c44..085582a0b 100644 --- a/Telegram/SourceFiles/core/launcher.cpp +++ b/Telegram/SourceFiles/core/launcher.cpp @@ -59,7 +59,12 @@ FilteredCommandLineArguments::FilteredCommandLineArguments( pushArgument("cocoa:fontengine=freetype"); #endif // !Q_OS_WIN } -#endif // Q_OS_WIN || Q_OS_MAC +#elif defined Q_OS_UNIX + if (Platform::DesktopEnvironment::IsGnome()) { + pushArgument("-platform"); + pushArgument("xcb;wayland"); + } +#endif // Q_OS_WIN || Q_OS_MAC || Q_OS_UNIX pushArgument(nullptr); }