Georg Baum wrote:
Pavel Sanda wrote:
on many cases once the selection is deselected i can't put it outside lyx
application anymore (1 instance now). what makes me perplexed is quasi
randomness of this behaviour.
This was at some point in time the intended behaviour: Selected stuff can be
pasted elsewhere, once it is deselected it does not work anymore. Later it
was changed so that the last selection can always be pasted (if no other
app has a newer selection). This is called the "persistent selection".
This worked fine after the initial implementation by Bo and me, but some
time before 1.5 was released we found out that it slowed down large
selections too much. I don't remember what was done to resolve that
problem.
I cached the external selection information in GuiSelection IIRC.
looking at the code, the role of xsel_cache is mystery to me, since
the code seems to be intended as "when xsel_cache is NOT set, then return
selection" (BufferView::requestSelection).
blame of the key parts around src/BufferView.cpp:1423 points to you,
Abdel, please can you give me some more comment before i break something
by changing how xsel_cache works (is inteneded to work)?
xsel_cache predates the persistent selection stuff. Maybe it was originally
intended to do something similar, and now both implementations get in the
way of each other? Maybe getting rid of it is just the right solution.
I used to understand more or less what it was about but I forgot since
then ;-/
Abdel.