diff --git a/Telegram/SourceFiles/platform/linux/linux_xdp_open_with_dialog.cpp b/Telegram/SourceFiles/platform/linux/linux_xdp_open_with_dialog.cpp index 9d2cf048e..e75bcb421 100644 --- a/Telegram/SourceFiles/platform/linux/linux_xdp_open_with_dialog.cpp +++ b/Telegram/SourceFiles/platform/linux/linux_xdp_open_with_dialog.cpp @@ -23,7 +23,7 @@ namespace { constexpr auto kXDPOpenURIInterface = "org.freedesktop.portal.OpenURI"; constexpr auto kPropertiesInterface = "org.freedesktop.DBus.Properties"; -const auto XdgActivationToken = base::Platform::XdgActivationToken; +using base::Platform::XdgActivationToken; } // namespace diff --git a/Telegram/SourceFiles/platform/linux/specific_linux.cpp b/Telegram/SourceFiles/platform/linux/specific_linux.cpp index a51308111..8636b5cda 100644 --- a/Telegram/SourceFiles/platform/linux/specific_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/specific_linux.cpp @@ -539,8 +539,8 @@ bool SkipTaskbarSupported() { } bool RunInBackground() { + using Ui::Platform::TitleControl; const auto layout = Ui::Platform::TitleControlsLayout(); - using TitleControl = Ui::Platform::TitleControl; return (ranges::contains(layout.left, TitleControl::Close) || ranges::contains(layout.right, TitleControl::Close)) && !ranges::contains(layout.left, TitleControl::Minimize)