Edwin Leuven wrote:

> atm copy paste primary selection (ie from outside lyx) doesn't work for me
> 
> the attached solves it
> 
> does this look ok?

Unfortunately not ;-( getClipboard() is misnamed, it really acts like a
hypotheticaal getSelection(), because it is used for
middle-mouse-button-copy/paste. See
http://www.freedesktop.org/wiki/Standards_2fclipboards_2dspec for an
overview over the differences between clipboard/selection. The most
important point is that the selection gets automatically filled, while the
clipboard gets only filled by explicit user request.

The correct fix would rename getClipboard() to getSelection() and implement
a new getClipboard() that would not be used for the middle mouse button,
but for external copy/paste via an lfun/menu entry.
It would be very nice if you could do something like that.

See also  http://bugzilla.lyx.org/show_bug.cgi?id=2138, that demands a bit
more: Copy/Paste with system clipboard and not only text, but any  format
that LyX can import, including native LyX.


Georg

Reply via email to