diff --git a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp index beafa089c..91257d1b5 100644 --- a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp @@ -31,6 +31,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "platform/linux/linux_gsd_media_keys.h" #endif // !DESKTOP_APP_DISABLE_DBUS_INTEGRATION #include "base/call_delayed.h" +#include "ui/widgets/popup_menu.h" #include "ui/widgets/input_fields.h" #include "facades.h" #include "app.h" @@ -39,6 +40,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include #ifndef DESKTOP_APP_DISABLE_DBUS_INTEGRATION +#include #include #include #include @@ -48,7 +50,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include #include -#include +#include +#include extern "C" { #undef signals diff --git a/Telegram/SourceFiles/platform/linux/main_window_linux.h b/Telegram/SourceFiles/platform/linux/main_window_linux.h index 1e4c6eb0f..863542820 100644 --- a/Telegram/SourceFiles/platform/linux/main_window_linux.h +++ b/Telegram/SourceFiles/platform/linux/main_window_linux.h @@ -9,13 +9,16 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "platform/platform_main_window.h" -#include "ui/widgets/popup_menu.h" +namespace Ui { +class PopupMenu; +} // namespace Ui #ifndef DESKTOP_APP_DISABLE_DBUS_INTEGRATION -#include "statusnotifieritem.h" -#include #include -#include + +class QTemporaryFile; +class DBusMenuExporter; +class StatusNotifierItem; typedef void* gpointer; typedef char gchar; @@ -87,7 +90,7 @@ private: #ifndef DESKTOP_APP_DISABLE_DBUS_INTEGRATION StatusNotifierItem *_sniTrayIcon = nullptr; GDBusProxy *_sniDBusProxy = nullptr; - std::unique_ptr _trayIconFile = nullptr; + std::unique_ptr _trayIconFile; bool _appMenuSupported = false; DBusMenuExporter *_mainMenuExporter = nullptr;