From e226033b6d7a878e26b54cafd7f66913a1a458b4 Mon Sep 17 00:00:00 2001 From: Eriq Taing Date: Mon, 11 May 2026 12:28:39 -0400 Subject: [PATCH] [hyprland] Add patch to fix cursor bounds --- hyprland-git/cursor-fix.patch | 25 +++++++++++++++++++++++++ hyprland-git/hyprland-git.spec | 5 ++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 hyprland-git/cursor-fix.patch diff --git a/hyprland-git/cursor-fix.patch b/hyprland-git/cursor-fix.patch new file mode 100644 index 0000000..649311d --- /dev/null +++ b/hyprland-git/cursor-fix.patch @@ -0,0 +1,25 @@ +diff --git a/src/managers/PointerManager.cpp b/src/managers/PointerManager.cpp +index b6419e71361..9fd91157756 100644 +--- a/src/managers/PointerManager.cpp ++++ b/src/managers/PointerManager.cpp +@@ -43,6 +43,8 @@ CPointerManager::CPointerManager() { + }); + }); + ++ m_hooks.monitorLayoutChanged = Event::bus()->m_events.monitor.layoutChanged.listen([this] { onMonitorLayoutChange(); }); ++ + m_hooks.monitorPreRender = Event::bus()->m_events.monitor.preCommit.listen([this](PHLMONITOR monitor) { + auto state = stateFor(monitor); + if (!state) +diff --git a/src/managers/PointerManager.hpp b/src/managers/PointerManager.hpp +index 41e8e32a0c0..fbeab138a83 100644 +--- a/src/managers/PointerManager.hpp ++++ b/src/managers/PointerManager.hpp +@@ -188,6 +188,7 @@ class CPointerManager { + + struct { + CHyprSignalListener monitorAdded; ++ CHyprSignalListener monitorLayoutChanged; + CHyprSignalListener monitorPreRender; + } m_hooks; + }; \ No newline at end of file diff --git a/hyprland-git/hyprland-git.spec b/hyprland-git/hyprland-git.spec index 999e8e2..619d803 100644 --- a/hyprland-git/hyprland-git.spec +++ b/hyprland-git/hyprland-git.spec @@ -1,6 +1,6 @@ %global hyprland_commit 5e441cae538c9396f2ee30338419bec12969608c %global hyprland_shortcommit %(c=%{hyprland_commit}; echo ${c:0:7}) -%global bumpver 1 +%global bumpver 2 %global commits_count 7302 %global commit_date Mon May 11 01:09:43 2026 @@ -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 +Patch0: cursor-fix.patch %{lua: hyprdeps = { @@ -189,6 +190,8 @@ Requires: pkgconfig(xkbcommon) %prep %autosetup -n %{?bumpver:Hyprland-%{hyprland_commit}} %{!?bumpver:hyprland-source} -N +%patch 0 + %if 0%{?bumpver} tar -xf %{SOURCE2} -C subprojects/hyprland-protocols --strip=1 tar -xf %{SOURCE3} -C subprojects/udis86 --strip=1