hyprland/surface: add hyprland surface opacity support

This commit is contained in:
outfoxxed 2025-01-01 15:28:09 -08:00
parent 08836ca1f3
commit 3a40174ed6
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
14 changed files with 476 additions and 2 deletions

View file

@ -0,0 +1,26 @@
qt_add_library(quickshell-hyprland-surface-extensions STATIC
qml.cpp
manager.cpp
surface.cpp
)
qt_add_qml_module(quickshell-hyprland-surface-extensions
URI Quickshell.Hyprland._SurfaceExtensions
VERSION 0.1
DEPENDENCIES QtQml
)
install_qml_module(quickshell-hyprland-surface-extensions)
wl_proto(quickshell-hyprland-surface-extensions
hyprland-surface-v1
"${CMAKE_CURRENT_SOURCE_DIR}/hyprland-surface-v1.xml"
)
target_link_libraries(quickshell-hyprland-surface-extensions PRIVATE
Qt::Quick Qt::WaylandClient Qt::WaylandClientPrivate wayland-client
)
qs_module_pch(quickshell-hyprland-surface-extensions)
target_link_libraries(quickshell PRIVATE quickshell-hyprland-surface-extensionsplugin)