From a26d769304594298a0a1cdae0194dc54d6ca2816 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sat, 19 Jun 2021 02:12:34 +0400 Subject: [PATCH] Set QT_WAYLAND_SHELL_INTEGRATION to custom value --- Telegram/SourceFiles/platform/linux/specific_linux.cpp | 4 ++++ Telegram/lib_waylandshells | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/platform/linux/specific_linux.cpp b/Telegram/SourceFiles/platform/linux/specific_linux.cpp index edf8a4bc1d..aa255b0a01 100644 --- a/Telegram/SourceFiles/platform/linux/specific_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/specific_linux.cpp @@ -744,6 +744,10 @@ namespace Platform { void start() { LOG(("Launcher filename: %1").arg(QGuiApplication::desktopFileName())); +#ifndef DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION + qputenv("QT_WAYLAND_SHELL_INTEGRATION", "desktop-app-xdg-shell"); +#endif // !DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION + qputenv("PULSE_PROP_application.name", AppName.utf8()); qputenv("PULSE_PROP_application.icon_name", GetIconName().toLatin1()); diff --git a/Telegram/lib_waylandshells b/Telegram/lib_waylandshells index f492c2f43d..bcb2d61c6c 160000 --- a/Telegram/lib_waylandshells +++ b/Telegram/lib_waylandshells @@ -1 +1 @@ -Subproject commit f492c2f43d13d71ceb797828829323b02d9db8c1 +Subproject commit bcb2d61c6ce8525731d1aa9abc35dce5457c4aa2