From ae75edcb90b11d92541405bc1a5235df9e4531bc Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 21 Jan 2023 07:18:24 +0000 Subject: [PATCH 01/11] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- xdotool.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xdotool.spec b/xdotool.spec index f7558d5..fd8d734 100644 --- a/xdotool.spec +++ b/xdotool.spec @@ -1,7 +1,7 @@ Name: xdotool Version: 3.20211022.1 Epoch: 1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Fake keyboard/mouse input License: BSD URL: https://github.com/jordansissel/xdotool @@ -59,6 +59,9 @@ chmod 0644 examples/ffsp.sh %doc examples %changelog +* Sat Jan 21 2023 Fedora Release Engineering - 1:3.20211022.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Sat Nov 05 2022 Orion Poplawski - 1:3.20111022.1-1 - Update to 3.20111022.1 - Use set_build_flags and make macros From df06f3b47ae90185c31f40b1331367b70c5b72d3 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 22 Jul 2023 18:40:40 +0000 Subject: [PATCH 02/11] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- xdotool.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xdotool.spec b/xdotool.spec index fd8d734..814d598 100644 --- a/xdotool.spec +++ b/xdotool.spec @@ -1,7 +1,7 @@ Name: xdotool Version: 3.20211022.1 Epoch: 1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Fake keyboard/mouse input License: BSD URL: https://github.com/jordansissel/xdotool @@ -59,6 +59,9 @@ chmod 0644 examples/ffsp.sh %doc examples %changelog +* Sat Jul 22 2023 Fedora Release Engineering - 1:3.20211022.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Sat Jan 21 2023 Fedora Release Engineering - 1:3.20211022.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From 619485d084d050ad944eb4195b7d9adcf6f2100f Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Wed, 16 Aug 2023 10:28:20 +0200 Subject: [PATCH 03/11] Use XTEST instead of XWarpPointer with a single screen Upstream PR: https://github.com/jordansissel/xdotool/pull/435 That allows to use xdotool with Xwayland and libEI. --- ...d-of-XWarpPointer-with-a-single-scre.patch | 50 +++++++++++++++++++ xdotool.spec | 9 +++- 2 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 0001-Use-XTEST-instead-of-XWarpPointer-with-a-single-scre.patch diff --git a/0001-Use-XTEST-instead-of-XWarpPointer-with-a-single-scre.patch b/0001-Use-XTEST-instead-of-XWarpPointer-with-a-single-scre.patch new file mode 100644 index 0000000..f20a1b6 --- /dev/null +++ b/0001-Use-XTEST-instead-of-XWarpPointer-with-a-single-scre.patch @@ -0,0 +1,50 @@ +From 89731d7eeb1515ebb217a59b8ca1c271e29ea0c5 Mon Sep 17 00:00:00 2001 +From: Olivier Fourdan +Date: Mon, 7 Aug 2023 10:20:08 +0200 +Subject: [PATCH] Use XTEST instead of XWarpPointer with a single screen + +xdotool uses the XTEST extension for pretty much all input events +emulation except for mousemove. + +For mousemove, it uses XWarpPointer() instead, to work around an old bug +from 2009 that would ignore the screen number in Zaphod mode. + +Unfortunately, that prevents mousemove to work in Xwayland with libEI +because Xwayland wires XTEST to libEI, whereas xdotool uses the core +protocol for that command alone. + +Zaphod mode is nowadays somehow deprecated, GNOME and GTK have dropped +support for it and Xwayland supports only one X11 screen (not to be +confused with multi-monitors), so this workaround in xdotool actually +causes more harm that good in most current cases nowadays. + +So, to preserve compatibility with Zaphod mode while being compatible +with modern windowing systems, this fix limits the workaround that uses +XWarpPointer() for when there is more than one screen, and uses the +XTEST extension otherwise. +--- + xdo.c | 8 ++++++-- + 1 file changed, 6 insertions(+), 2 deletions(-) + +diff --git a/xdo.c b/xdo.c +index ffb0333..8cda05c 100644 +--- a/xdo.c ++++ b/xdo.c +@@ -804,8 +804,12 @@ int xdo_move_mouse(const xdo_t *xdo, int x, int y, int screen) { + * seem to recommend XWarpPointer instead, ie; + * https://bugzilla.redhat.com/show_bug.cgi?id=518803 + */ +- Window screen_root = RootWindow(xdo->xdpy, screen); +- ret = XWarpPointer(xdo->xdpy, None, screen_root, 0, 0, 0, 0, x, y); ++ if (screen > 0) { ++ Window screen_root = RootWindow(xdo->xdpy, screen); ++ ret = XWarpPointer(xdo->xdpy, None, screen_root, 0, 0, 0, 0, x, y); ++ } else { ++ ret = XTestFakeMotionEvent(xdo->xdpy, 0, x, y, CurrentTime); ++ } + XFlush(xdo->xdpy); + return _is_success("XWarpPointer", ret == 0, xdo); + } +-- +2.41.0 + diff --git a/xdotool.spec b/xdotool.spec index 814d598..42a6502 100644 --- a/xdotool.spec +++ b/xdotool.spec @@ -1,12 +1,14 @@ Name: xdotool Version: 3.20211022.1 Epoch: 1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Fake keyboard/mouse input License: BSD URL: https://github.com/jordansissel/xdotool Source0: https://github.com/jordansissel/xdotool/releases/download/v%{version}/xdotool-%{version}.tar.gz +Patch0: 0001-Use-XTEST-instead-of-XWarpPointer-with-a-single-scre.patch + BuildRequires: make BuildRequires: gcc BuildRequires: libXtst-devel, libX11-devel, libXinerama-devel, libXi-devel, /usr/bin/pod2man, libxkbcommon-devel @@ -31,6 +33,7 @@ developing applications that use libxdo %prep %setup -q +%patch 0 -p1 %build %set_build_flags @@ -59,6 +62,10 @@ chmod 0644 examples/ffsp.sh %doc examples %changelog +* Wed Aug 16 2023 Olivier Fourdan - 1:3.20211022.1-4 +- Use XTEST instead of XWarpPointer with a single screen + https://github.com/jordansissel/xdotool/pull/435 + * Sat Jul 22 2023 Fedora Release Engineering - 1:3.20211022.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From 5db0df50167f6cb754ce5a136fac9bfcdb73207d Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Tue, 16 Jan 2024 21:36:24 -0500 Subject: [PATCH 04/11] Fix perl-podlators dependency With /app-prefixed builds of perl now existing for flatpaks, file dependencies must not be used for perl components. --- xdotool.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xdotool.spec b/xdotool.spec index 42a6502..ff67929 100644 --- a/xdotool.spec +++ b/xdotool.spec @@ -11,7 +11,7 @@ Patch0: 0001-Use-XTEST-instead-of-XWarpPointer-with-a-single-scre.patch BuildRequires: make BuildRequires: gcc -BuildRequires: libXtst-devel, libX11-devel, libXinerama-devel, libXi-devel, /usr/bin/pod2man, libxkbcommon-devel +BuildRequires: libXtst-devel, libX11-devel, libXinerama-devel, libXi-devel, perl-podlators, libxkbcommon-devel %description This tool lets you programmatically (or manually) simulate keyboard input From 86930907398e00fb11f261bcea2f59936d5c0e76 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 27 Jan 2024 09:29:24 +0000 Subject: [PATCH 05/11] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- xdotool.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xdotool.spec b/xdotool.spec index ff67929..bb8a0c6 100644 --- a/xdotool.spec +++ b/xdotool.spec @@ -1,7 +1,7 @@ Name: xdotool Version: 3.20211022.1 Epoch: 1 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Fake keyboard/mouse input License: BSD URL: https://github.com/jordansissel/xdotool @@ -62,6 +62,9 @@ chmod 0644 examples/ffsp.sh %doc examples %changelog +* Sat Jan 27 2024 Fedora Release Engineering - 1:3.20211022.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Wed Aug 16 2023 Olivier Fourdan - 1:3.20211022.1-4 - Use XTEST instead of XWarpPointer with a single screen https://github.com/jordansissel/xdotool/pull/435 From 6d4965c7b13715fc529045416b99b8f04077680f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 20 Jul 2024 09:53:04 +0000 Subject: [PATCH 06/11] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- xdotool.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xdotool.spec b/xdotool.spec index bb8a0c6..8b8256b 100644 --- a/xdotool.spec +++ b/xdotool.spec @@ -1,7 +1,7 @@ Name: xdotool Version: 3.20211022.1 Epoch: 1 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Fake keyboard/mouse input License: BSD URL: https://github.com/jordansissel/xdotool @@ -62,6 +62,9 @@ chmod 0644 examples/ffsp.sh %doc examples %changelog +* Sat Jul 20 2024 Fedora Release Engineering - 1:3.20211022.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Sat Jan 27 2024 Fedora Release Engineering - 1:3.20211022.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From c3f51d3d6a302ce154a85ab73510fb8c59b97340 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Wed, 4 Sep 2024 22:51:20 +0200 Subject: [PATCH 07/11] convert license to SPDX This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4 --- xdotool.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/xdotool.spec b/xdotool.spec index 8b8256b..74a01f7 100644 --- a/xdotool.spec +++ b/xdotool.spec @@ -1,9 +1,10 @@ Name: xdotool Version: 3.20211022.1 Epoch: 1 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Fake keyboard/mouse input -License: BSD +# Automatically converted from old format: BSD - review is highly recommended. +License: LicenseRef-Callaway-BSD URL: https://github.com/jordansissel/xdotool Source0: https://github.com/jordansissel/xdotool/releases/download/v%{version}/xdotool-%{version}.tar.gz @@ -62,6 +63,9 @@ chmod 0644 examples/ffsp.sh %doc examples %changelog +* Wed Sep 04 2024 Miroslav Suchý - 1:3.20211022.1-7 +- convert license to SPDX + * Sat Jul 20 2024 Fedora Release Engineering - 1:3.20211022.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From e6eac4771b1748255acf5d85a8516d27f9ec788a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sun, 19 Jan 2025 15:37:15 +0000 Subject: [PATCH 08/11] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- xdotool.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xdotool.spec b/xdotool.spec index 74a01f7..e018d11 100644 --- a/xdotool.spec +++ b/xdotool.spec @@ -1,7 +1,7 @@ Name: xdotool Version: 3.20211022.1 Epoch: 1 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Fake keyboard/mouse input # Automatically converted from old format: BSD - review is highly recommended. License: LicenseRef-Callaway-BSD @@ -63,6 +63,9 @@ chmod 0644 examples/ffsp.sh %doc examples %changelog +* Sun Jan 19 2025 Fedora Release Engineering - 1:3.20211022.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Wed Sep 04 2024 Miroslav Suchý - 1:3.20211022.1-7 - convert license to SPDX From 00aa6006f55dc3d84b7e09d474f10c30ccedc6a7 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 20:43:34 +0000 Subject: [PATCH 09/11] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- xdotool.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xdotool.spec b/xdotool.spec index e018d11..a735285 100644 --- a/xdotool.spec +++ b/xdotool.spec @@ -1,7 +1,7 @@ Name: xdotool Version: 3.20211022.1 Epoch: 1 -Release: 8%{?dist} +Release: 9%{?dist} Summary: Fake keyboard/mouse input # Automatically converted from old format: BSD - review is highly recommended. License: LicenseRef-Callaway-BSD @@ -63,6 +63,9 @@ chmod 0644 examples/ffsp.sh %doc examples %changelog +* Fri Jul 25 2025 Fedora Release Engineering - 1:3.20211022.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Sun Jan 19 2025 Fedora Release Engineering - 1:3.20211022.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 58e4fe25385103f4073d7fe2e55e09bf4636c74b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 17 Jan 2026 20:33:26 +0000 Subject: [PATCH 10/11] Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild --- xdotool.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xdotool.spec b/xdotool.spec index a735285..90c3451 100644 --- a/xdotool.spec +++ b/xdotool.spec @@ -1,7 +1,7 @@ Name: xdotool Version: 3.20211022.1 Epoch: 1 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Fake keyboard/mouse input # Automatically converted from old format: BSD - review is highly recommended. License: LicenseRef-Callaway-BSD @@ -63,6 +63,9 @@ chmod 0644 examples/ffsp.sh %doc examples %changelog +* Sat Jan 17 2026 Fedora Release Engineering - 1:3.20211022.1-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + * Fri Jul 25 2025 Fedora Release Engineering - 1:3.20211022.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From 51070e9338d1c05aab8ad538621c13fd5e9f2341 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 17 Jul 2026 09:06:44 +0000 Subject: [PATCH 11/11] Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild --- xdotool.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xdotool.spec b/xdotool.spec index 90c3451..e9f2f0b 100644 --- a/xdotool.spec +++ b/xdotool.spec @@ -1,7 +1,7 @@ Name: xdotool Version: 3.20211022.1 Epoch: 1 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Fake keyboard/mouse input # Automatically converted from old format: BSD - review is highly recommended. License: LicenseRef-Callaway-BSD @@ -63,6 +63,9 @@ chmod 0644 examples/ffsp.sh %doc examples %changelog +* Fri Jul 17 2026 Fedora Release Engineering - 1:3.20211022.1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild + * Sat Jan 17 2026 Fedora Release Engineering - 1:3.20211022.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild