From 24776f8ddc0c824268dfda87dd50b3b7a8e63516 Mon Sep 17 00:00:00 2001 From: Markus Volk Date: Fri, 23 Jan 2026 20:50:06 +0100 Subject: [PATCH] hyprexpo: compile fix --- .../hyprland-plugins/hyprland-hyprexpo.bb | 3 +- .../0001-hyprexpo-compile-fix.patch | 31 +++++++++++++++++++ .../hyprland-plugins/hyprland-plugins.inc | 7 +++++ 3 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 recipes-support/hyprland/hyprland-plugins/hyprland-hyprexpo/0001-hyprexpo-compile-fix.patch diff --git a/recipes-support/hyprland/hyprland-plugins/hyprland-hyprexpo.bb b/recipes-support/hyprland/hyprland-plugins/hyprland-hyprexpo.bb index c077786..382cf99 100644 --- a/recipes-support/hyprland/hyprland-plugins/hyprland-hyprexpo.bb +++ b/recipes-support/hyprland/hyprland-plugins/hyprland-hyprexpo.bb @@ -3,7 +3,8 @@ LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://../LICENSE;md5=e6458723c467506fd0c4aea3be2bcf8a" require hyprland-plugins.inc - + +SRC_URI += "file://0001-hyprexpo-compile-fix.patch" S = "${UNPACKDIR}/${BB_GIT_DEFAULT_DESTSUFFIX}/hyprexpo" FILES:${PN} += "${libdir}/libhyprexpo.so" diff --git a/recipes-support/hyprland/hyprland-plugins/hyprland-hyprexpo/0001-hyprexpo-compile-fix.patch b/recipes-support/hyprland/hyprland-plugins/hyprland-hyprexpo/0001-hyprexpo-compile-fix.patch new file mode 100644 index 0000000..ff487f1 --- /dev/null +++ b/recipes-support/hyprland/hyprland-plugins/hyprland-hyprexpo/0001-hyprexpo-compile-fix.patch @@ -0,0 +1,31 @@ +From 2dc4b64213ce1033ef8fe87010308abbca653fe1 Mon Sep 17 00:00:00 2001 +From: Markus Volk +Date: Fri, 23 Jan 2026 20:43:18 +0100 +Subject: [PATCH] hyprexpo: compile fix + +Signed-off-by: Markus Volk + +Upstream-Status: Pending +--- + hyprexpo/main.cpp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/hyprexpo/main.cpp b/hyprexpo/main.cpp +index 2129ea0..483c868 100644 +--- a/main.cpp ++++ b/main.cpp +@@ -174,9 +174,9 @@ static Hyprlang::CParseResult expoGestureKeyword(const char* LHS, const char* RH + std::expected resultFromGesture; + + if (data[startDataIdx] == "expo") +- resultFromGesture = g_pTrackpadGestures->addGesture(makeUnique(), fingerCount, direction, modMask, deltaScale, disableInhibit); ++ resultFromGesture = g_pTrackpadGestures->addGesture(makeUnique(), fingerCount, direction, modMask, deltaScale); + else if (data[startDataIdx] == "unset") +- resultFromGesture = g_pTrackpadGestures->removeGesture(fingerCount, direction, modMask, deltaScale, disableInhibit); ++ resultFromGesture = g_pTrackpadGestures->removeGesture(fingerCount, direction, modMask, deltaScale); + else { + result.setError(std::format("Invalid gesture: {}", data[startDataIdx]).c_str()); + return result; +-- +2.52.0 + diff --git a/recipes-support/hyprland/hyprland-plugins/hyprland-plugins.inc b/recipes-support/hyprland/hyprland-plugins/hyprland-plugins.inc index 8ada015..60de7aa 100644 --- a/recipes-support/hyprland/hyprland-plugins/hyprland-plugins.inc +++ b/recipes-support/hyprland/hyprland-plugins/hyprland-plugins.inc @@ -17,3 +17,10 @@ DEPENDS += " \ inherit cmake pkgconfig FILES:${PN}-dev = "" + +# Hack to allow patching the plugins +do_configure:prepend() { + rm -rf ${S}/patches + rm -rf ${S}/.pc +} +