Middle mouse button stopped pasting

stan stanl-fedorauser at vfemail.net
Tue Jun 16 18:37:43 UTC 2015


On Tue, 16 Jun 2015 10:17:30 -0400
"Kevin H. Hobbs" <hobbsk at ohio.edu> wrote:

> I have also noticed a change to middle mouse button pasting in Fedora
> 20.
> 
> The middle mouse button used to paste into gvim at the position of the
> cursor regardless of where I clicked.
> 
> Now, all of a sudden, it moves the cursor then inserts text (Yuck!)

Yes, this is very irritating.  The old behavior was excellent.  I find
myself using vim in virtual consoles, where that is still the default
behavior with gpm, instead of gvim, whenever possible.

I suspect changes to gtk, since that has also changed behavior in
firefox unless configuration is explicitly changed.  Have you noticed
that all scroll bars became click-to-position instead of
click-pgup-pgdn?  That was due to the change in gtk.  Even changing the
setting doesn't get rid of all of it, since that is still the behavior
I see in claws-mail, though it did fix firefox.  Great for small touch
screens. Not so hot for large screens with pointing devices attached.

First, I used the suggestion from the arch wiki at 
https://wiki.archlinux.org/index.php/GTK%2B
~/.config/gtk-3.0/settings.ini

[Settings]
gtk-primary-button-warps-slider = false
except I changed it to =0 like the rest of the settings in the file.

And from comment 42 in
https://bugzilla.mozilla.org/show_bug.cgi?id=803633

Note, I figured a way that works for all gtk 2.0 applications while
keeping Adwaita:

Create a $HOME/.themes/Adwaita/gtk-2.0/gtkrc file with the following
content:

include "/usr/share/themes/Adwaita/gtk-2.0/gtkrc"
gtk-primary-button-warps-slider = 0

Now firefox works, but as the arch wiki says, not all applications
respect this setting.  So it doesn't fix everything with this behavior.

It is also possible to leave this behavior as click-to-position, and
instead use the right click to get the old click-pgup-pgdn behavior
that used to be left click.

That doesn't fix this behavior in gvim, though.  Probably another
change is responsible for that.


More information about the users mailing list