Re: Clipboard daemon



oops.  accidentally hit send :(

On 29/10/2003 10:46 PM, Mike Hearn wrote:

There is a key distinction here that you must realise:
* The OLE clipboard on Windows is scoped local to a PROCESS not a WINDOW *

The reason everybody hates the X clipboard is because it's window scoped.
For instance, if I type something into an Evolution mail window, copy it,
create a new message window then try and paste it in, it'll work only as
long as the original window exists. This has bit me several times.

If the clipboard persisted as long as Evolution did, really this would not
be a huge problem.

The GtkClipboard code in GTK should make it easy to get behaviour similar to the Windows OLE clipboard. Yes, X selections are released when the window that has claimed them disapears, but there is no reason why the selection needs to be claimed by the window corresponding to the editor widget.

With GtkClipboard, another window is created to own the selection, so that the data can persist til the application exits.

James.

--
Email: james daa com au
WWW:   http://www.daa.com.au/~james/







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]