Disabling middle click pasting doesn't work only in Chromium...; Works in KDE #12299
Replies: 2 comments 6 replies
|
Hi, it seems like Chromium is finally getting an "official" way to disable middle click pasting: https://issues.chromium.org/issues/399412221. It looks like most of the necessary changes are merged already, with only one missing. Unrelated to your issue, but you mention that only Chromium misbehave, what about programs using Qt? |
|
Now that chromium 144 is out, I can confirm disabling primary pasting does work! Now, as far as I know, only Qt apps are left with no way to disable primary pasting. I know it is possible to disable it on KDE Plasma, but the Hyprland option doesn't work for it. I wonder how kwin handles it. |
Uh oh!
There was an error while loading. Please reload this page.
Hey, so this is an interesting observation I made when trying to get rid of middle click pasting:
In firefox, we know it's a separate setting (groan, but okay). But in Chromium, for example, I find that disabling it in the KDE settings app disables it in Chromium, so they listen to the DE's settings in some way!
Though, when I turn it off in hyprland, it stays completely enabled in Chromium.
Due to the issue behaving in this way, I think there may be something that Hyprland can do (I'm not sure what though) to disable it in chromium as well.
Reading Hyprland source, the setting only really sets so the "primary clipboard setting" action is ignored (from quick-eyeing the code). But looking at KDE source code, I found that it just sets a setting for kwin, which, on launch (and probably during runtime somehow), either creates a "PrimarySelectionDeviceManagerV1Interface" or doesn't.
Going to Chromium, they have two implementations for the "primary selection device", one being "zwp_..." and one being "gtk_...", here.
Now I have no idea what this means (having not dabbled in Wayland primary selection clipboard stuff at all past the cursorly exploration I did just now), and maybe someone else has a better insight into it, but there has to be a cut somewhere on why KDE manages to disable the Chromium middle click paste with its main option, and Hyprland doesn't.
I know there are similar discussions, but not specifically on this variant of the issue. It otherwise works, just not on Chromium.
Also as a funny aside, in another Electron instance here, it doesn't work on either KDE or hyprland, so that's that...
All reactions