How Can I Disable Middle Mouse Button Copy-Paste in Fedora?

June 10, 2025 3 answers
Asked by CuriousCoder42
I've been enjoying Fedora lately, but I'm really frustrated with the middle mouse button automatically copying and pasting text—it acts like Ctrl+C and Ctrl+V! I've tried to disable it using the Tweaks application, but it doesn't seem to change anything. Is there a way to completely turn this feature off? And on a related note, is there a way to enable auto-scrolling globally for the middle mouse button? I've only managed to get it to work in Firefox, but can't figure it out for Discord or other applications.

Answers

UbuntuFanGirl
Make sure you have Gnome Tweaks installed. If not, you can easily install it with the command: `sudo dnf install gnome-tweaks`. Then, launch Gnome Tweaks, go to the Mouse & Touchpad section, and make sure to toggle off the "Middle Click Paste" option.

CuriousCoder42: I mentioned in my question that I already have it turned off in Gnome Tweaks, but it still pastes everywhere! So frustrating!

Reply to this answer
TechieTom23
You can disable middle-click paste specifically in Firefox by going to about:config, searching for "middlemouse.paste", and setting it to false. Just so you know, middle-click pasting is a common feature in many Linux programs that have their own keybindings, so it can be tricky to turn off everywhere.

FrustratedUser99: Thanks for that, at least now Firefox is usable. Still debating whether to stick with Linux though—I really can’t stand this middle click behavior all over the system!

Reply to this answer
LinuxNinja88
There might also be a setting in GNOME Settings itself, and you can check similar settings in the LibreOffice suite. Just look around in those settings to see if you can find something related to clipboard or middle-click options.

CuriousCoder42: I’ve checked everywhere I could think of in the settings app; it only seems to be in Tweaks, but it doesn’t work as expected.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions