On Thu, 2016-02-11 at 17:19 +0000, Ian Malone wrote:
> There are two different mechanisms at work:
>
> 1) The basic X Windows Cut Buffer facility wherein you highlight
> something and can then paste it using the middle button. This
should
> work everywhere, i.e. AFAIK it's implemented directly by X and
doesn't
> require cooperation from the app.
>
This isn't quite true. If I understand correctly applciations either
use the cut buffer or primary buffer for this. While the cut buffer
is
held by the root window the primary buffer makes a request from the
application (in X primary buffer acts the same way as clipboard
buffer), which is why selecting from gedit and using middle button
paste only works while the source window is open, but selection from
a
terminal can still be pasted after it is closed.
I was basing my comment
on https://en.wikipedia.org/wiki/X_Window_selec
tion#Cut_buffers but I'll admit to being only slightly familiar with
the details.
poc