From 5d0b78c319ed311f926dadc915b82f4f8127994e Mon Sep 17 00:00:00 2001 From: Eriq Taing Date: Tue, 9 Dec 2025 11:50:49 -0500 Subject: [PATCH] Attempt with patch to see if fixes compile issues --- hyprland-git/dynamicPointerCast.patch | 21 +++++++++++++++++++++ hyprland-git/hyprland-git.spec | 3 ++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 hyprland-git/dynamicPointerCast.patch diff --git a/hyprland-git/dynamicPointerCast.patch b/hyprland-git/dynamicPointerCast.patch new file mode 100644 index 0000000..9f33374 --- /dev/null +++ b/hyprland-git/dynamicPointerCast.patch @@ -0,0 +1,21 @@ +diff --git a/src/Compositor.cpp b/src/Compositor.cpp +index 0d9c2f8..3bcaace 100644 +--- a/src/Compositor.cpp ++++ b/src/Compositor.cpp +@@ -79,6 +79,7 @@ + #include + #include + #include ++#include + + using namespace Hyprutils::String; + using namespace Aquamarine; +@@ -1179,7 +1180,7 @@ PHLWINDOW CCompositor::getWindowFromSurface(SP pSurface) { + if (VIEW->type() != Desktop::View::VIEW_TYPE_WINDOW) + return nullptr; + +- return dynamicPointerCast(VIEW); ++ return std::dynamicPointerCast(VIEW); + } + + PHLWINDOW CCompositor::getWindowFromHandle(uint32_t handle) { diff --git a/hyprland-git/hyprland-git.spec b/hyprland-git/hyprland-git.spec index b31a849..45d14e1 100644 --- a/hyprland-git/hyprland-git.spec +++ b/hyprland-git/hyprland-git.spec @@ -35,6 +35,7 @@ Source0: %{url}/releases/download/v%{version}/source-v%{version}.tar.gz %endif Source4: macros.hyprland Source5: https://github.com/xkbcommon/libxkbcommon/archive/xkbcommon-%{libxkbcommon_version}/libxkbcommon-%{libxkbcommon_version}.tar.gz +Patch: dynamicPointerCast.patch %{lua: hyprdeps = { @@ -200,7 +201,7 @@ Requires: pkgconfig(xkbcommon) %prep -%autosetup -n %{?bumpver:Hyprland-%{hyprland_commit}} %{!?bumpver:hyprland-source} -N +%autosetup -n %{?bumpver:Hyprland-%{hyprland_commit}} %{!?bumpver:hyprland-source} -N -p1 %if 0%{?fedora} < 43 mkdir -p subprojects/libxkbcommon tar -xf %{SOURCE5} -C subprojects/libxkbcommon --strip=1