[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes:

| Shigeru Miyata <[EMAIL PROTECTED]> writes:
| 
| | +   XStoreBuffer(fl_display, xclipboard.c_str(),
| |  xclipboard.length(), 0);
| 
| Now I wonder... if it is this easy to use cut and paste buffer why do
| we need the complexity of XConvertSelection?
| Do we miss something by using XStoreBytes and XFetchBytes?
| 
| If we just as well can use these _much_ simpler functions I think we
| should begin using them!

Ok I have looked a tiny bit on this... I don't think this XStoreBuffer
will work. Ok, it will work if the client that want to access this
uses XFetchBuffer, but this does not seem to be the standard/common
way to handle the clipboard.

It seems to me that the standard way is to use XConvertSelection
(et.al.), but this blurs out into X magic very quickly for me...

To me the solution seems to be to use the support supplied by the X
toolkits so that we inside lyx does not have to handle the complexity
of this at all.

Qt has extensive support for this.
GTK seems to have good support for this.
Gtk-- does not mention it on their www page.
XForms has very basic support for this.

So this should probably be one of the subprojects to work on to make
LyX Gui indep.

        Lgb

Reply via email to