patch unified-remote server to make click work
This commit is contained in:
parent
425b071175
commit
0f143662ed
48
app-misc/unified-remote/files/unified-remote-clickfix.patch
Normal file
48
app-misc/unified-remote/files/unified-remote-clickfix.patch
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
diff --git a/opt/urserver/remotes/Unified/Core/Input/remote.lua b/opt/urserver/remotes/Unified/Core/Input/remote.lua
|
||||||
|
index 1553696..9b5d131 100644
|
||||||
|
--- a/opt/urserver/remotes/Unified/Core/Input/remote.lua
|
||||||
|
+++ b/opt/urserver/remotes/Unified/Core/Input/remote.lua
|
||||||
|
@@ -30,7 +30,11 @@ actions.MouseUp = function(...)
|
||||||
|
end
|
||||||
|
|
||||||
|
actions.Click = function(...)
|
||||||
|
- mouse.click(unpack({...}));
|
||||||
|
+ -- click() doesn't work with wayland for some reason (14.03.2026)
|
||||||
|
+ -- respective github issue: https://github.com/unifiedremote/Remotes/issues/140
|
||||||
|
+ -- mouse.click(unpack({...}));
|
||||||
|
+ mouse.down(unpack({...}));
|
||||||
|
+ mouse.up(unpack({...}));
|
||||||
|
end
|
||||||
|
|
||||||
|
actions.DblClick = function(...)
|
||||||
|
@@ -63,4 +67,4 @@ end
|
||||||
|
|
||||||
|
actions.ZoomOut = function ()
|
||||||
|
mouse.zoomout();
|
||||||
|
-end
|
||||||
|
\ No newline at end of file
|
||||||
|
+end
|
||||||
|
diff --git a/opt/urserver/remotes/Unified/Core/Mouse/remote.lua b/opt/urserver/remotes/Unified/Core/Mouse/remote.lua
|
||||||
|
index df8f5d3..be96e9a 100644
|
||||||
|
--- a/opt/urserver/remotes/Unified/Core/Mouse/remote.lua
|
||||||
|
+++ b/opt/urserver/remotes/Unified/Core/Mouse/remote.lua
|
||||||
|
@@ -37,7 +37,11 @@ end
|
||||||
|
--@help Click mouse button(s)
|
||||||
|
--@param buttons:buttons Buttons to click
|
||||||
|
actions.click = function (...)
|
||||||
|
- mouse.click(unpack({...}));
|
||||||
|
+ -- click() doesn't work with wayland for some reason (14.03.2026)
|
||||||
|
+ -- respective github issue: https://github.com/unifiedremote/Remotes/issues/140
|
||||||
|
+ -- mouse.click(unpack({...}));
|
||||||
|
+ mouse.down(unpack({...}));
|
||||||
|
+ mouse.up(unpack({...}));
|
||||||
|
end
|
||||||
|
|
||||||
|
--@help Double click mouse button(s)
|
||||||
|
@@ -76,4 +80,4 @@ end
|
||||||
|
--@help Perform zoom out
|
||||||
|
actions.zoom_out = function ()
|
||||||
|
mouse.zoomout();
|
||||||
|
-end
|
||||||
|
\ No newline at end of file
|
||||||
|
+end
|
||||||
@ -21,6 +21,8 @@ RESTRICT="strip mirror bindist fetch"
|
|||||||
DEPEND="
|
DEPEND="
|
||||||
"
|
"
|
||||||
|
|
||||||
|
PATCHES=("${FILESDIR}/unified-remote-clickfix.patch")
|
||||||
|
|
||||||
src_unpack() {
|
src_unpack() {
|
||||||
unpack_deb "${SRC_URI}"
|
unpack_deb "${SRC_URI}"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user