From 37f59095f47dfce06edb895d29071706fa3e5162 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Sat, 12 Jun 2021 02:52:41 +0200 Subject: [PATCH] Fix building with LINK_TO_GTK --- Telegram/SourceFiles/platform/linux/linux_gdk_helper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/linux_gdk_helper.cpp b/Telegram/SourceFiles/platform/linux/linux_gdk_helper.cpp index 568c634065..3834c8c72e 100644 --- a/Telegram/SourceFiles/platform/linux/linux_gdk_helper.cpp +++ b/Telegram/SourceFiles/platform/linux/linux_gdk_helper.cpp @@ -80,10 +80,10 @@ f_gdk_wayland_window_set_transient_for_exported gdk_wayland_window_set_transient #endif // !DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION void GdkHelperLoadGtk2(QLibrary &lib) { -#ifndef DESKTOP_APP_DISABLE_X11_INTEGRATION +#if !defined DESKTOP_APP_DISABLE_X11_INTEGRATION && !defined LINK_TO_GTK LOAD_GTK_SYMBOL(lib, gdk_x11_drawable_get_xdisplay); LOAD_GTK_SYMBOL(lib, gdk_x11_drawable_get_xid); -#endif // !DESKTOP_APP_DISABLE_X11_INTEGRATION +#endif // !DESKTOP_APP_DISABLE_X11_INTEGRATION && !LINK_TO_GTK } void GdkHelperLoadGtk3(QLibrary &lib) {