Files
HyprlandRPM/hyprland-git/dynamicPointerCast.patch
Eriq Taing 5d0b78c319
Some checks failed
Build hyprland-git / Build and push image (push) Failing after 4m44s
Attempt with patch to see if fixes compile issues
2025-12-09 11:50:49 -05:00

22 lines
684 B
Diff

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) {