[Xquartz-dev] 1.4.2-apple20

George Peter Staplin georgeps at xmission.com
Fri Oct 24 13:01:57 PDT 2008


Quoted robert delius royar <x11 at frinabulax.org>:

> Fri, 24 Oct 2008 (10:56 -0700 UTC) Jeremy Huddleston wrote:
>
>>>> When I highlight text in xterm, the text is copied to the
>>> clipboard, but > the highlight immediately turns off (as soon as I  
>>>  release the mouse > button).  That is not how X in the same xterm  
>>>  version (237) on my Xandros > system works.  I missed most of  
>>> last  week's discussions; perhaps this was > discussed.
>>>
>>> I don't see that happening... hmm =/
>>>
>>> I thought this might happen once we got the proxy-immediately   
>>> stuff working (and not just when we enter/leave X11.app) ... but I  
>>>  don't think that's done yet.
>>
>>
>> Oh, wait... I see what you mean... you don't mean immediately.  You mean:
>>
>> select text in xterm.
>> leave X11.app
>> return to X11.app to see the selection disappear.
>
> No, I do mean immediately
>  Button down in xterm          [highlight is on]
>  Move mouse over text in xterm [highlight still on]
>  Button up in xterm            [highlight is off]
>
> It appears to be this resource in ~/.Xresources:
> XTerm*VT100*selectToClipboard: true
> When I start without that resource, the highlight remains even after I
> switch to another window outside X11.app.
>

I understand now.  The way that the xpbproxy works is very similar to  
a CLIPBOARD_MANAGER, and it does greedy CLIPBOARD management.  By  
greedy I mean whenever the CLIPBOARD selection owner changes, the  
xpbproxy grabs the selection data, and sets itself as owner of  
CLIPBOARD with that data.  This enables easy copying of images and  
other CLIPBOARD data from X11 to pbs/NSPasteboard, and eliminates the  
need for 2 Copy menu items (for PRIMARY and CLIPBOARD) for XQuartz.

If you really need selectToClipboard in your ~/.Xresources, as well as  
the text to remain selected/owned, then I don't see a way around it  
with the current xpbproxy design, beyond disabling proxying of  
clipboard which probably isn't what you want.


George
-- 
http://people.freedesktop.org/~gstaplin/


More information about the Xquartz-dev mailing list