On Tue, Jan 28, 2003 at 03:46:24PM +0000, John Levon wrote:
> > void LyXText::cutSelection(BufferView * bview, bool doclear, bool realcut)
> > {
> > // Stuff what we got on the clipboard. Even if there is no selection.
> >
> > // There is a problem with having the stuffing here in that the
> > // larger the selection the slower LyX will get. This can be
> > // solved by running the line below only when the selection has
> > // finished. The solution used currently just works, to make it
> > // faster we need to be more clever and probably also have more
> > // calls to stuffClipboard. (Lgb)
> > bview->stuffClipboard(selectionAsString(bview->buffer(), true));
> >
> > Why do we have to _stuff_ the clipboard?
> > And which clipboard?
>
> The xforms clipboard. Things are a bit of a mess because xforms only
> provides primary support not clipboard support. They are supposed to act
> differently in a "real" X application (clipboard for control-X, primary
> for "select region").
>
> I believe this is working as best as it can at the moment. I don't
> understand the comment above, surely cutClipboard is only called once.
But we handle X-selection in BufferView::Pimpl::selectionRequested().
In LyXText::cutSelection, we should handle the X-clipboard.
For now, we can just disable this line.