WebCord icon indicating copy to clipboard operation
WebCord copied to clipboard

Disable middle-click copy-paste when autoscroll is enabled

Open innosflew opened this issue 3 years ago • 4 comments

Is your feature request related to a problem? Please describe. When autoscroll is enabled on Linux the middle-click copy-paste is still functional and causes whatever is in my clipboard to be copied into the chat bar sometimes when I'm using autoscroll.

Describe the solution you'd like Disable middle-click copy-paste when autoscroll is enabled, or at least a separate option for disabling middle-click copy-paste.

innosflew avatar Sep 08 '22 17:09 innosflew

Yeah, I've noticed that for some time, but I don't know yet what triggers the paste. It might be either Chromium or Discord, althrough I think websites should require a clipboard permission to actually access the clipboard content without user consent, so maybe it has to be disabled with the Chromium flags?

SpacingBat3 avatar Sep 09 '22 15:09 SpacingBat3

This seems to be case in Chromium based browsers as well, even when I disable "Middle Click Paste" in Gnome Tweaks. But I finally managed to stop this behavior in WebCord by using the 1.2 version (1.3 didn't work for me) of this script: https://github.com/milaq/XMousePasteBlock/releases/tag/1.2

Also, I just found out that for some reason there are 2 clipboard-like mechanisms in Linux - primary selection (copy by selecting text and paste by middle mouse button) and clipboard selection (copy by CTRL+C, paste by CTRL+V). I don't know why there are two separate clipboards.

innosflew avatar Sep 09 '22 18:09 innosflew

This seems to be case in Chromium based browsers as well, even when I disable "Middle Click Paste" in Gnome Tweaks. But I finally managed to stop this behavior in WebCord by using the 1.2 version (1.3 didn't work for me) of this script: https://github.com/milaq/XMousePasteBlock/releases/tag/1.2

Also, I just found out that for some reason there are 2 clipboard-like mechanisms in Linux - primary selection (copy by selecting text and paste by middle mouse button) and clipboard selection (copy by CTRL+C, paste by CTRL+V). I don't know why there are two separate clipboards.

i downloaded 1.2 and installed manually. it works very nicely so far.

Korothi avatar Jan 03 '23 17:01 Korothi

If you're on KDE Plasma, also follow this: https://github.com/milaq/XMousePasteBlock/issues/17#issuecomment-1371784589

he3als avatar Jan 18 '23 17:01 he3als