Description: Use system version of hyprland-protocols Hyprland sources include a copy of hyprland-protocols. We will, instead, use the system version of this package. Author: Alan M Varghese Last-Update: 2024-09-22 Forwarded: not-needed --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -229,6 +229,13 @@ function(protocolnew protoPath protoName external) if(external) set(path ${CMAKE_SOURCE_DIR}/${protoPath}) + string(FIND ${protoPath} "/usr/share" protocol_found) + if(protocol_found EQUAL 0) + message(STATUS "Protocol found under /usr.") + set(path ${protoPath}) + else() + set(path ${CMAKE_SOURCE_DIR}/${protoPath}) + endif() else() set(path ${WAYLAND_PROTOCOLS_DIR}/${protoPath}) endif() @@ -259,10 +266,10 @@ target_link_libraries(Hyprland OpenGL::EGL OpenGL::GL Threads::Threads udis86) -protocolnew("subprojects/hyprland-protocols/protocols" +protocolnew("/usr/share/hyprland-protocols/protocols" "hyprland-global-shortcuts-v1" true) protocolnew("unstable/text-input" "text-input-unstable-v1" false) -protocolnew("subprojects/hyprland-protocols/protocols" +protocolnew("/usr/share/hyprland-protocols/protocols" "hyprland-toplevel-export-v1" true) protocolnew("protocols" "wlr-screencopy-unstable-v1" true) protocolnew("protocols" "wlr-gamma-control-unstable-v1" true) @@ -274,7 +281,7 @@ protocolnew("protocols" "wlr-output-management-unstable-v1" true) protocolnew("protocols" "kde-server-decoration" true) protocolnew("protocols" "wlr-data-control-unstable-v1" true) -protocolnew("subprojects/hyprland-protocols/protocols" "hyprland-focus-grab-v1" +protocolnew("/usr/share/hyprland-protocols/protocols" "hyprland-focus-grab-v1" true) protocolnew("protocols" "wlr-layer-shell-unstable-v1" true) protocolnew("protocols" "wayland-drm" true)