Attempt with patch to see if fixes compile issues
Some checks failed
Build hyprland-git / Build and push image (push) Failing after 4m44s

This commit is contained in:
2025-12-09 11:50:49 -05:00
parent 9530827369
commit 5d0b78c319
2 changed files with 23 additions and 1 deletions

View File

@@ -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 <malloc.h>
#include <unistd.h>
#include <xf86drm.h>
+#include <memory>
using namespace Hyprutils::String;
using namespace Aquamarine;
@@ -1179,7 +1180,7 @@ PHLWINDOW CCompositor::getWindowFromSurface(SP<CWLSurfaceResource> pSurface) {
if (VIEW->type() != Desktop::View::VIEW_TYPE_WINDOW)
return nullptr;
- return dynamicPointerCast<Desktop::View::CWindow>(VIEW);
+ return std::dynamicPointerCast<Desktop::View::CWindow>(VIEW);
}
PHLWINDOW CCompositor::getWindowFromHandle(uint32_t handle) {

View File

@@ -35,6 +35,7 @@ Source0: %{url}/releases/download/v%{version}/source-v%{version}.tar.gz
%endif %endif
Source4: macros.hyprland Source4: macros.hyprland
Source5: https://github.com/xkbcommon/libxkbcommon/archive/xkbcommon-%{libxkbcommon_version}/libxkbcommon-%{libxkbcommon_version}.tar.gz Source5: https://github.com/xkbcommon/libxkbcommon/archive/xkbcommon-%{libxkbcommon_version}/libxkbcommon-%{libxkbcommon_version}.tar.gz
Patch: dynamicPointerCast.patch
%{lua: %{lua:
hyprdeps = { hyprdeps = {
@@ -200,7 +201,7 @@ Requires: pkgconfig(xkbcommon)
%prep %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 %if 0%{?fedora} < 43
mkdir -p subprojects/libxkbcommon mkdir -p subprojects/libxkbcommon
tar -xf %{SOURCE5} -C subprojects/libxkbcommon --strip=1 tar -xf %{SOURCE5} -C subprojects/libxkbcommon --strip=1