<div dir="ltr"><div dir="ltr"><div>Hi,</div><div><br></div><div>I'd like to spark a little improvement to the 'standard' regarding PRIMARY buffer copy-paste behaviour (aka middle mouse button paste, aka selection buffer). </div><div><br></div><div>One of the reasons why many consider middle mouse paste useless is, that one can't replace currently selected text with middle mouse paste.</div><div>This could be possible though, if we'd sharpen (not change) the recommended behaviour like this:</div><div> - the PRIMARY buffer is only updated on left button up events</div><div> - a text selection is replaced by the contents of the PRIMARY buffer when a middle click is registered within it</div><div><br></div><div>To 'paste over' a text selection, one would have to: mark, hold click left mouse, middle click.</div><div><br></div><div>I know that sounds awkward and middle mouse paste is considered legacy by many. But still many use it, it was ported to wayland. We can as well try to make the behaviour more useful.  </div><div>I propose above concretization to the de facto copy-paste standard found here:</div><div><br></div><div><a href="https://specifications.freedesktop.org/clipboards-spec/clipboards-latest.txt">https://specifications.freedesktop.org/clipboards-spec/clipboards-latest.txt</a></div><div><br></div><div>I tried said 'paste over' maneuver in a few common applications. Almost all of them behaved differently :). So no silently agreed upon behaviour would be broken.</div><div>If these changes make it to the document, I try to help implementing it in some widgets.</div><div><br></div><div>What do you think?</div><div><br></div></div></div>