File fix-XSetTransientForHint.patch of Package QGnomePlatform

From: Antonio Larrosa <alarrosa@suse.com>
Subject: Fix undefined reference to XSetTransientForHint

Index: QGnomePlatform-0.9.0/CMakeLists.txt
===================================================================
--- QGnomePlatform-0.9.0.orig/CMakeLists.txt
+++ QGnomePlatform-0.9.0/CMakeLists.txt
@@ -94,6 +94,8 @@ if (NOT QT_PLUGINS_DIR)
     endif()
 endif()
 
+find_package(X11 REQUIRED)
+
 add_subdirectory(src)
 
 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
Index: QGnomePlatform-0.9.0/src/theme/CMakeLists.txt
===================================================================
--- QGnomePlatform-0.9.0.orig/src/theme/CMakeLists.txt
+++ QGnomePlatform-0.9.0/src/theme/CMakeLists.txt
@@ -18,6 +18,7 @@ target_link_libraries(qgnomeplatformthem
     Qt${QT_VERSION_MAJOR}::GuiPrivate
     ${ADWAITAQT_LIBRARIES}
     PkgConfig::GTK+3
+    X11::X11
 )
 
 if (NOT USE_QT6)
openSUSE Build Service is sponsored by