Hi,
I have this problem ever since I switched from Plasma to Sway (openSUSEway) on one Tumbleweed installation several months ago.
If my computer runs for more than a few days (sometimes it happens after one day, sometimes only after two or three), the clipboard stops working correctly.
It will only paste the text I copied last on the second attempt. The first paste attempt always returns the previous text I copied.
The behavior mainly happens if I use the Ctrl+c/v keys, wl-copy
and wl-paste
tend to work fine. I mostly notice it happening when pasting from/to Alacritty, but pasting to other applications like Slack tends to be affected as well.
Some “internal” copies (for example copying from Firefox - Nightly in Wayland mode - to Firefox or from Slack to Slack) paste correctly, others (for example from Alacritty to Alacritty) do not and have the same behavior as pasting between different applications.
Does someone happen to have any ideas how to debug this?
Some time ago I made a bug report, but I’m not sure it really is a Sway issue.
It would already help knowing what process I need to restart or switch I need to flick when the issue occurs - right now my only option is to reboot the whole machine to have it working correctly for a short while again.
I have exec wl-paste -t text --watch clipman store
in my Sway configuration for debugging, copies using Ctrl+c show up there immediately, even if pasting yields the previous entry.
Thanks for any help!