gui-apps/hyprpaper: 0.7.3, patch hyprwayland-scanner

This patch adds support for hyprwayland-scanner 0.4.4,
while still supporting 0.4.2.

Signed-off-by: John M. Harris Jr. <johnmh@johnmh.me>
This commit is contained in:
John M. Harris Jr.
2024-12-30 19:33:06 -07:00
parent fe8262e1c1
commit b7d4945908
3 changed files with 23 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
diff --git a/src/Hyprpaper.cpp b/src/Hyprpaper.cpp
index e83c36d..1825288 100644
--- a/src/Hyprpaper.cpp
+++ b/src/Hyprpaper.cpp
@@ -201,7 +201,7 @@ void CHyprpaper::createSeat(SP<CCWlSeat> pSeat) {
else
m_pSeatCursorShapeDevice = makeShared<CCWpCursorShapeDeviceV1>(m_pCursorShape->sendGetPointer(m_pSeatPointer->resource()));
- m_pSeatPointer->setEnter([this](CCWlPointer* r, uint32_t serial, wl_resource* surface, wl_fixed_t x, wl_fixed_t y) {
+ m_pSeatPointer->setEnter([this](CCWlPointer* r, uint32_t serial, wl_proxy* surface, wl_fixed_t x, wl_fixed_t y) {
if (!m_pCursorShape) {
m_pSeatPointer->sendSetCursor(serial, nullptr, 0, 0);
return;

View File

@@ -29,12 +29,16 @@ DEPEND="
dev-libs/wayland-protocols
"
BDEPEND="
>=dev-util/hyprwayland-scanner-0.4.0
>=dev-util/hyprwayland-scanner-0.4.2
dev-util/wayland-scanner
dev-vcs/git
virtual/pkgconfig
"
PATCHES=(
"${FILESDIR}/hyprpaper-0.7.3-fix-wayland-scanner.patch"
)
src_compile() {
emake protocols
cmake_src_compile

View File

@@ -5,6 +5,10 @@
<name>Julien Roy</name>
<email>julien@jroy.ca</email>
</maintainer>
<maintainer type="person">
<name>John M. Harris, Jr.</name>
<email>johnmh@johnmh.me</email>
</maintainer>
<upstream>
<bugs-to>https://github.com/hyprwm/hyprpaper/issues</bugs-to>
<changelog>https://github.com/hyprwm/hyprpaper/releases</changelog>