File dynamic-link-x.patch of Package telegram-desktop

diff --git a/tdesktop/cmake/external/webrtc/CMakeLists.txt b/tdesktop-copy/cmake/external/webrtc/CMakeLists.txt
index a372fb7..6a81876 100644
--- a/cmake/external/webrtc/CMakeLists.txt
+++ b/cmake/external/webrtc/CMakeLists.txt
@@ -9,7 +9,18 @@ add_library(desktop-app::external_webrtc ALIAS external_webrtc)
 
 if (DESKTOP_APP_USE_PACKAGED)
     find_package(tg_owt REQUIRED)
-    target_link_libraries(external_webrtc INTERFACE tg_owt::tg_owt)
+    target_link_libraries(external_webrtc INTERFACE
+      tg_owt::tg_owt
+      X11
+      Xcomposite
+      Xdamage
+      Xext
+      Xfixes
+      Xrandr
+      Xrender
+      Xtst
+      vpx
+    )
     return()
 endif()
 
openSUSE Build Service is sponsored by