1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-24 22:01:47 +03:00

x11: always update selection ownership

refs: https://github.com/wez/wezterm/issues/2926
This commit is contained in:
Wez Furlong 2023-01-21 18:24:29 -07:00
parent f97a36ea5f
commit 9350795f33
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387
2 changed files with 5 additions and 3 deletions

View File

@ -87,6 +87,8 @@ As features stabilize some brief notes about them will accumulate here.
render when first activated until pressing a key.
* lag when making heavy use of foreground process information in tab titles.
[#2991](https://github.com/wez/wezterm/issues/2991)
* X11: always update selection owner even if our window already owns it
[#2926](https://github.com/wez/wezterm/issues/2926)
#### Changed
* `CTRL-SHIFT-P` now activates the new command palette, instead of `PaneSelect`

View File

@ -665,10 +665,10 @@ impl XWindowInner {
selection,
time: self.copy_and_paste.time,
})?;
} else if we_own_it && current_owner != window_id {
} else if we_own_it {
log::trace!(
"SEL: window_id={window_id:?} X doesn't think we own \
selection ({current_owner:?} has it), but we do: tell it we have it"
"SEL: window_id={window_id:?} currently owned by \
{current_owner:?}, tell X we now own it"
);
// We have the selection but X doesn't think we do; assert it!
conn.send_request_no_reply(&xcb::x::SetSelectionOwner {