Am Mittwoch, 3. Januar 2007 17:03 schrieb Bo Peng:
> > No, this was not about naming. What I meant was: LyX does not care 
whether
> > the selection was set from within or not. It simply sends the selection 
to
> > the X server when it has one, and gets the current selection back when 
it
> > is requested. Therefore a Selection::isInternal() method is only
> > confusing, because it is not needed. Besides that the comment is wrong.
> 
> This is feasible under X11, but I guess qt/win does not have system
> selection buffer, right?

No. Or yes? I coukld imagine that it implements a fake selection like we do 
here. In that case we would not need to do that ourselves. Maybe somebody 
who has the qt/win sources handy can have a look?

> > This could even be implemented without any #ifdef by simply using
> > qApp->clipboard()->supportsSelection(), and would work automatically on
> > all platforms that don't have a selection. This way, no preference 
setting
> > would be needed, and the behaviour on windows and X11 would be as
> > identical as possible. Or did I miss anything?
> 
> Do you want C-v to paste selection?

No. What Enrico wants and what would be OK with me is to use the system 
clipboard contents for middle mouse button paste if there is no selection 
in LyX.

> This is not the same under X11. I 
> mean, under windows, middle-button paste would better work, but only
> paste selection, and these operations should have nothing to do with
> windows clipboard.

I think the windows users should first agree on something they like before 
we proceed any further.


Georg

Reply via email to