diff options
author | Nathaniel Russell <naterussell83@gmail.com> | 2024-02-22 21:34:13 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-02-24 15:34:49 +0700 |
commit | cc67a572c3240018aa9d0d6ea12d5c26751f1fed (patch) | |
tree | 91628009cc83061bd09621dcd50a5a4fbdcc2874 /libraries/libei/0001-oeffis-OEFFIS_DEVICE_ALL_DEVICES-should-translate-to.patch | |
parent | 1830a3f73aec19c786612faefcc112935aa37c4a (diff) | |
download | slackbuilds-cc67a572c3240018aa9d0d6ea12d5c26751f1fed.tar.gz slackbuilds-cc67a572c3240018aa9d0d6ea12d5c26751f1fed.tar.xz |
libraries/libei: Added (library for Emulated Input).
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libei/0001-oeffis-OEFFIS_DEVICE_ALL_DEVICES-should-translate-to.patch')
-rw-r--r-- | libraries/libei/0001-oeffis-OEFFIS_DEVICE_ALL_DEVICES-should-translate-to.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/libraries/libei/0001-oeffis-OEFFIS_DEVICE_ALL_DEVICES-should-translate-to.patch b/libraries/libei/0001-oeffis-OEFFIS_DEVICE_ALL_DEVICES-should-translate-to.patch new file mode 100644 index 0000000000..f56d9a7bc6 --- /dev/null +++ b/libraries/libei/0001-oeffis-OEFFIS_DEVICE_ALL_DEVICES-should-translate-to.patch @@ -0,0 +1,36 @@ +From 5812782885624648d3d198edab5af314abadfee4 Mon Sep 17 00:00:00 2001 +From: Peter Hutterer <peter.hutterer@who-t.net> +Date: Wed, 13 Dec 2023 13:31:00 +1000 +Subject: [PATCH] oeffis: OEFFIS_DEVICE_ALL_DEVICES should translate to "all" + +As the portal documentation [1] says: + Bitmask of what device types to request remote controlling of. Default is all. + +The default is only triggered if we do not submit the types at all, the +current behavior of sending a value of 0 means "none". Fix this by +skipping the "types" key if we try to select for all devices. + +[1] https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.impl.portal.RemoteDesktop.html + +Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> +--- + src/liboeffis.c | 2 +- + test/test_oeffis.py | 24 ++++++++++++++++++++++++ + 2 files changed, 25 insertions(+), 1 deletion(-) + +diff --git a/src/liboeffis.c b/src/liboeffis.c +index 93b83176..7d2ec353 100644 +--- a/src/liboeffis.c ++++ b/src/liboeffis.c +@@ -560,7 +560,7 @@ portal_select_devices(struct oeffis *oeffis) + &response, + "oa{sv}", + oeffis->session_path, +- 2, ++ oeffis->devices == OEFFIS_DEVICE_ALL_DEVICES ? 1 : 2, + "handle_token", /* string key */ + "s", token, /* variant string */ + "types", /* string key */ +-- +2.43.0 + |