Description: Fix missing Qt6 WaylandClientPrivate component in find_package
 Hyprland-qtutils tools link against Qt6::WaylandClientPrivate, but the
 find_package(Qt6 ...) call in utils/dialog, utils/donate-screen and
 utils/update-screen only requested the WaylandClient component. With
 Qt >= 6.8 the WaylandClientPrivate CMake config is only loaded when the
 WaylandClientPrivate component is explicitly requested, leaving the
 Qt6::WaylandClientPrivate target undefined and failing the configure
 step. Add WaylandClientPrivate to the COMPONENTS list in the three
 CMakeLists.txt files (matching upstream commit 5ffdfc13).
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Origin: upstream, https://github.com/hyprwm/hyprland-qtutils/commit/5ffdfc13ed03
Bug: https://github.com/hyprwm/hyprland-qtutils/pull/19
Forwarded: not-needed
Last-Update: 2026-09-02

--- hyprland-qtutils-0.1.5.orig/utils/dialog/CMakeLists.txt
+++ hyprland-qtutils-0.1.5/utils/dialog/CMakeLists.txt
@@ -5,7 +5,7 @@ project(hyprland-dialog VERSION ${VER} L
 set(CMAKE_CXX_STANDARD 23)
 set(CMAKE_CXX_STANDARD_REQUIRED ON)
 
-find_package(Qt6 6.5 REQUIRED COMPONENTS Widgets Quick QuickControls2 WaylandClient)
+find_package(Qt6 6.5 REQUIRED COMPONENTS Widgets Quick QuickControls2 WaylandClient WaylandClientPrivate)
 find_package(PkgConfig REQUIRED)
 
 pkg_check_modules(hyprutils REQUIRED IMPORTED_TARGET hyprutils)
--- hyprland-qtutils-0.1.5.orig/utils/donate-screen/CMakeLists.txt
+++ hyprland-qtutils-0.1.5/utils/donate-screen/CMakeLists.txt
@@ -5,7 +5,7 @@ project(hyprland-donate-screen VERSION $
 set(CMAKE_CXX_STANDARD 23)
 set(CMAKE_CXX_STANDARD_REQUIRED ON)
 
-find_package(Qt6 6.5 REQUIRED COMPONENTS Widgets Quick QuickControls2 WaylandClient)
+find_package(Qt6 6.5 REQUIRED COMPONENTS Widgets Quick QuickControls2 WaylandClient WaylandClientPrivate)
 find_package(PkgConfig REQUIRED)
 
 pkg_check_modules(hyprutils REQUIRED IMPORTED_TARGET hyprutils)
--- hyprland-qtutils-0.1.5.orig/utils/update-screen/CMakeLists.txt
+++ hyprland-qtutils-0.1.5/utils/update-screen/CMakeLists.txt
@@ -5,7 +5,7 @@ project(hyprland-update-screen VERSION $
 set(CMAKE_CXX_STANDARD 23)
 set(CMAKE_CXX_STANDARD_REQUIRED ON)
 
-find_package(Qt6 6.5 REQUIRED COMPONENTS Widgets Quick QuickControls2 WaylandClient)
+find_package(Qt6 6.5 REQUIRED COMPONENTS Widgets Quick QuickControls2 WaylandClient WaylandClientPrivate)
 find_package(PkgConfig REQUIRED)
 
 pkg_check_modules(hyprutils REQUIRED IMPORTED_TARGET hyprutils)
