improve PRIMARY buffer copy-paste behaviour, paste over

Thomas Kluyver thomas at kluyver.me.uk
Fri Mar 6 11:47:28 UTC 2020


On Fri, Mar 6, 2020, at 11:26 AM, Johannes Thrän wrote:
> I'd like the middle mouse click to also be able to do that, i.e:
> 
> 1. select text (not drag)
> 
> 2. in another window select some other text, hold click
> 
> 2a, middle mouse click.
> 
> ... release.

I think that's what I was trying to describe as well - it seems the terminology is a bit tricky. ;-) I understand 'drag' as 'moving the mouse while holding a mouse button down', which could be used to make a selection or to drag & drop.

One thing that might get broken: creating a selection with the keyboard (shift + arrow keys) and then middle clicking to paste it somewhere else. When you select with the keyboard, there's no mouse up event, and no other obvious event to mean a selection is 'finished'. Maybe this is an unusual pattern, but I bet there are some people who do it.

Maybe the answer to that is just to say that PRIMARY is updated when either the mouse button is released, or the selection is changed with the keyboard.

Thomas


More information about the xdg mailing list