Hi, * Randy Kramer wrote (2007-11-30 11:56): >A remaining somewhat odd thing about X selections is that exiting the app you >did a cut/copy from removes the cut/copied data from the clipboard, since the >selection protocol is asynchronous and requires the source app to provide the >data at paste time. The solution here would be a standardized protocol for a >"clipboard daemon" so that apps could hand off their data to a daemon when >they exit. Or alternatively, you can run an application such as xclipboard >which constantly "harvests" clipboard selections.
This would not be a "solution", as it would almost certainly remove functionality. Call it an alternative, if you want. Using classical X11 methods, two apps can discuss the format in which the information should be transmitted. For example, if I would select a picture in Firefox and would paste it into Gimp, I would get a JPEG (or PNG or whatever); in NEdit, only the alt tag would be pasted. If I would select a piece of text in Firefox and would paste it into NEdit, NEdit might even pop up a dialog asking the user whether he wants to paste the text or the matching segment of HTML source. The work behind this is done by the applications. A clipboard dæmon would have to know every format possible, and keep them all in memory. See http://tronche.com/gui/x/icccm/sec-2.html#s-2.6.2 Thorsten -- Necessity is the plea for every infringement of human freedom. It is the argument of tyrants; it is the creed of slaves. - William Pitt
pgp6HQD3mlGBP.pgp
Description: PGP signature
-- NEdit Develop mailing list - [email protected] http://www.nedit.org/mailman/listinfo/develop
