summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-misc/xdotool')
-rw-r--r--x11-misc/xdotool/files/xdotool-3.20210804.2-allow_xwayland.patch14
-rw-r--r--x11-misc/xdotool/xdotool-3.20210804.2.ebuild1
2 files changed, 15 insertions, 0 deletions
diff --git a/x11-misc/xdotool/files/xdotool-3.20210804.2-allow_xwayland.patch b/x11-misc/xdotool/files/xdotool-3.20210804.2-allow_xwayland.patch
new file mode 100644
index 000000000000..efb1ccf13410
--- /dev/null
+++ b/x11-misc/xdotool/files/xdotool-3.20210804.2-allow_xwayland.patch
@@ -0,0 +1,14 @@
+See
+https://github.com/jordansissel/xdotool/issues/346
+for details.
+
+--- a/xdo.c
++++ b/xdo.c
+@@ -121,7 +121,6 @@
+ // Try to detect XWayland and warn the user about problems.
+ if (appears_to_be_wayland(xdpy)) {
+ fprintf(stderr, "The X server at %s appears to be XWayland. Unfortunately, XWayland does not correctly support the features used by libxdo and xdotool.\n", display);
+- return NULL;
+ }
+
+
diff --git a/x11-misc/xdotool/xdotool-3.20210804.2.ebuild b/x11-misc/xdotool/xdotool-3.20210804.2.ebuild
index 63cc8018aa42..eb3af11dd2b9 100644
--- a/x11-misc/xdotool/xdotool-3.20210804.2.ebuild
+++ b/x11-misc/xdotool/xdotool-3.20210804.2.ebuild
@@ -31,6 +31,7 @@ BDEPEND="virtual/pkgconfig
x11-base/xorg-proto"
PATCHES=(
+ "${FILESDIR}"/${PN}-3.20210804.2-allow_xwayland.patch
"${FILESDIR}"/${PN}-3.20210804.2-no_hardcoded_pkg-config.patch
"${FILESDIR}"/${PN}-3.20210804.2-no_ldconfig.patch
)