You are not logged in.

#1 2022-04-17 14:16:32

skullnoober
Member
Registered: 2021-11-13
Posts: 18

[SOLVED] How does one turn off Middle-Click paste on xfce?

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

#2 2022-04-17 15:39:54

mpan
Member
Registered: 2012-08-01
Posts: 1,591
Website

Re: [SOLVED] How does one turn off Middle-Click paste on xfce?

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 false

If 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

#3 2022-04-17 16:08:54

skullnoober
Member
Registered: 2021-11-13
Posts: 18

Re: [SOLVED] How does one turn off Middle-Click paste on xfce?

mpan wrote:

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?

mpan wrote:

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

#4 2022-04-17 18:15:36

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [SOLVED] How does one turn off Middle-Click paste on xfce?

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

#5 2022-04-17 18:39:54

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,344

Re: [SOLVED] How does one turn off Middle-Click paste on xfce?

Offline

#6 2022-04-19 20:22:55

skullnoober
Member
Registered: 2021-11-13
Posts: 18

Re: [SOLVED] How does one turn off Middle-Click paste on xfce?

seth wrote:

Works like a charm, thank you!

Offline

Board footer

Powered by FluxBB