1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-30 14:49:26 +03:00
wezterm/window/src
Omar Sandoval 7373a4990b Fix copy mode on Wayland
On Wayland, copy mode often doesn't actually update the clipboard.
Specifically, it only works one time after a pointer enter or pointer
button event, then doesn't work again until the next event.

This is because the Wayland protocol serial number in
CopyAndPaste::last_serial is only updated by pointer enter and pointer
button events. So, subsequent copies using only the keyboard reuse the
same serial number and get ignored. last_serial used to be updated for
keyboard events, too, but that was (accidentally?) dropped in commit
0a00ffe98b.

Commit 0a00ffe98b also added another
last_serial to WaylandConnection which is updated for keyboard events
but isn't used anywhere as far as I can tell.

So, to fix this bug, let's get rid of CopyAndPaste::last_serial and
replace it with WaylandConnection::last_serial, which is now updated for
pointer and keyboard events.

closes: #3843
2023-07-03 10:45:47 -07:00
..
bitmaps try scaling down images that don't fit in the texture atlas 2023-05-19 08:57:38 -07:00
os Fix copy mode on Wayland 2023-07-03 10:45:47 -07:00
configuration.rs remove the config bridge and have window -> config directly 2021-03-23 21:56:57 -07:00
connection.rs fix(clippy): Remove unnecessary clone/to_string calls 2023-03-16 07:40:12 -07:00
egl.rs fix(clippy): Use faster methods on Iterators 2023-03-19 07:29:23 -07:00
lib.rs add window:keyboard_modifiers() method 2023-04-16 19:53:32 -07:00
screen.rs macos: report max_fps in ScreenInfo 2022-08-19 21:02:51 -07:00
spawn.rs deps: upgrade to mio 0.8 2022-05-04 20:16:41 -07:00