Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #190
The GUIClipboardDaemon created a new Wayland window every ~2 seconds to interact with the clipboard. This steals focus from the currently active window for a very short time, causing context menus and overlays to close. It basically made Clipboard unusable on Wayland.
The simplest strategy of fixing this is to align Linux with all other platforms by only reading data from the clipboard on-demand instead of doing it continuously.
As far as I could tell, this daemon was part of a yet-to-be completed feature, so it feels fine to remove it.
Tested systems
I tested this change on:
If you want to test
With Nix
(If you don't have flakes enabled by default, add
--extra-experimental-features nix-command --extra-experimental-features flakes
to the first command)Manual
Download my branch, make sure you have all dependencies and tools installed. Then, run