From 2f03c30283a111bdbfb6ccd7bcb03a6290ba1151 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=BCller?= Date: Tue, 14 Apr 2026 13:02:36 -0700 Subject: [PATCH] Fix X11 clipboard warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This adds an override for the x11-clipboard dependency, which removed the racy ownership check after writing text to the clipboard. Closes #6978. Signed-off-by: Daniel Müller --- CHANGELOG.md | 4 ++++ Cargo.lock | 3 +-- Cargo.toml | 4 ++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 77e2ab6f..a1a06516 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ Notable changes to the `alacritty_terminal` crate are documented in its ## 0.18.0-dev +### Fixed + +- Spurious "Failed to set new owner of XCB selection" warnings on X11 + ## 0.17.0 ### Packaging diff --git a/Cargo.lock b/Cargo.lock index b67defde..166d049b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2723,8 +2723,7 @@ checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59" [[package]] name = "x11-clipboard" version = "0.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "662d74b3d77e396b8e5beb00b9cad6a9eccf40b2ef68cc858784b14c41d535a3" +source = "git+https://github.com/quininer/x11-clipboard.git?rev=19ab2163cf0bd0db607e827a5214571990307866#19ab2163cf0bd0db607e827a5214571990307866" dependencies = [ "libc", "x11rb", diff --git a/Cargo.toml b/Cargo.toml index 8351a01d..c6330471 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,3 +19,7 @@ incremental = false [workspace.dependencies] toml = "0.9.11" toml_edit = "0.24.0" + +# TODO: Validation of fix for #6978. Remove before next release and use released `x11-clipboard`. +[patch.crates-io] +x11-clipboard = { git = "https://github.com/quininer/x11-clipboard.git", rev = "19ab2163cf0bd0db607e827a5214571990307866" }