Attempt with patch to see if fixes compile issues
Some checks failed
Build hyprland-git / Build and push image (push) Failing after 4m44s
Some checks failed
Build hyprland-git / Build and push image (push) Failing after 4m44s
This commit is contained in:
21
hyprland-git/dynamicPointerCast.patch
Normal file
21
hyprland-git/dynamicPointerCast.patch
Normal 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) {
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user