[hyprland] Add patch to fix cursor bounds
Some checks failed
Build hyprland-git / Build and push image (push) Failing after 2m59s
Some checks failed
Build hyprland-git / Build and push image (push) Failing after 2m59s
This commit is contained in:
25
hyprland-git/cursor-fix.patch
Normal file
25
hyprland-git/cursor-fix.patch
Normal file
@@ -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;
|
||||
};
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user