-
Notifications
You must be signed in to change notification settings - Fork 559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GTK: copy-on-select = clipboard
causes "Copied to clipboard" toast spam
#4800
Comments
this happens with MacOS as well, it's constantly copying to clipboard. When using something like alfred which has an option to merge clipboards if cmd+c is pressed twice, the result is very bizzare merging of multiple entries to the clipboard. |
I have enquired about this a while ago on discord. See link below for screenshot of what's described by @lcx above. https://discord.com/channels/1005603569187160125/1313506853765779528 |
This also means that when you're using a clipboard manager, the list of entries is going to get cluttered very quickly. A selection of 10 characters basically means that you'll have 10 entries in your clipboard manager, every subsequent entry being one character longer than the one preceding it. Your last entry will be the one you want but you'll quickly erase other clipboard entries unless your history is really big. |
Going to take a shot at fixing this |
For mouse release there's functionality for following links. Is it safe to assume that following links should take precedence? |
Discussed in #4766
Originally posted by dumbasPL January 7, 2025
host: Arch Linux, GNOME 47 on Wayland
version: 1.0.2-main+a3837a1e (built from source)
simplified config (without theming):
steps to reproduce:
copy-on-select = clipboard
Copied to clipboard
spam at the bottomexpected behavior:
Copied to clipboard
shows once the selection has ended (when the mouse button is lifted)Solution
I think we should also look into the core here (
src/Surface.zig
) to see if we should only apply the selection when a mouse release event happens.We should probably also change the GTK implementation to only show the toast after a very short (50ms or so) delay.
The text was updated successfully, but these errors were encountered: