X11 Clipboard implementation

Mike Hearn m.hearn at signal.qinetiq.com
Wed Feb 12 09:01:34 CST 2003


> You may be able to hack some of the controls to support text selection
> but you won't be able to do it for the general case. For example this
> wouldn't work in Word. So I don't see this working. In fact it could
> break assumption made by the application. In my opinion, the only way to
> copy data from a Windows App to X is via control-c/Clipboard API. 

Yes, true

> In Windows, to copy data you generally need to select the data (Under X
> this would grab the PRIMARY selection) and then hit control-c (Under X
> this would grab the CLIPBOARD selection). 
> 
> In think we should always be grabbing both PRIMARY and CLIPBOARD and
> releasing them when we loose either (ClearAllSelections=1). This seemed
> to be the least confusing for many users as well. 

I don't agree with that, the X clipboard spec is very clear on this, and
most apps are now in compliance. Mixing them together is what Qt used to
do, and people found it very confusing when they couldn't figure out
what was going on with the clipboard.

> I'm in the process of finishing a large clipboard patch for CodeWeavers
> that should also address the dll separation issues. Hopefully I'll get
> the patch together soon and post it to the list.

Cool :)

> -- 
> Mike Hearn <m.hearn at signal.qinetiq.com>
> QinetiQ - Malvern Technology Center




More information about the wine-devel mailing list