You are not logged in.
Its getting really annoying whenever im scrolling (e.g. discord), it automatically pastes any copied link, is there a possible way to disable it?
Last edited by skullnoober (2022-04-19 20:28:01)
Offline
That is not under control of a desktop environment.⁽¹⁾ Selection handling is performed entirely by applications and it’s only up to their developers to offer that feature and the ability to disable it.⁽²⁾ The program may delegate that task to a GUI toolkit, so you may try changing toolkit’s settings. Discord is using GTK, so you may see if changing property gtk-enable-primary-paste to false using gsettings does anything:
$ gsettings set org.gnome.desktop.interface gtk-enable-primary-paste falseIf that doesn’t work, then you must find the relevant configuration in Discord itself or request the developers to implement the feature.
____
⁽¹⁾ Some applications belonging to a desktop environment may use a single setting to disable PRIMARY paste and the desktop environment may offer a single place to adjust this setting. But that’s authors’ choice to follow the setting: it’s still not under control of the desktop environment itself.
⁽²⁾ Freedesktop clipboards specification mandates that the middle button should paste PRIMARY, if the middle button is used for pasting, but doesn’t require that feature to be present.
Paperclips in avatars? | Sometimes I seem a bit harsh — don’t get offended too easily!
Offline
The program may delegate that task to a GUI toolkit, so you may try changing toolkit’s settings. Discord is using GTK, so you may see if changing property gtk-enable-primary-paste to false using gsettings does anything:
$ gsettings set org.gnome.desktop.interface gtk-enable-primary-paste false
Sadly this didn't work, but how do I do the following?
If that doesn’t work, then you must find the relevant configuration in Discord itself or request the developers to implement the feature.
Do you mean like the settings? If so, there isn't anything related to binding the paste button or middle clicks
Offline
So then you are left with requesting that the developers implement such a feature.
If you have a mouse with an actual scroll wheel (rather then emulated scrolling by holding the middle mouse while moving on a trackpad/trackpoint) then you could remap the middle mouse button. But this would have the side effect of making middle clicks unavailable everywhere.
Last edited by Trilby (2022-04-17 18:18:13)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Crutch, but might suffice: https://aur.archlinux.org/packages/xmousepasteblock-git
Online
Crutch, but might suffice: https://aur.archlinux.org/packages/xmousepasteblock-git
Works like a charm, thank you!
Offline