Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: copy and paste between Aqua and X11 applications?




On Sat, 11 Aug 2007, Bill Campbell wrote:

Another data point on the problem pasting into xterms using the middle
mouse button.

When I use Cmd-Tab to switch from Firefox to x11, the middle mouse button
retrieves that last thing I used Cmd-C to copy from Firefox even though
I've done multiple copies in x11, highlighting with the left button, and
copying with the middle.

I have been able to do this consistently indicating something in the Cmd-
Tab process is replacing the contents of the (a) x11 paste buffer when
switching back to x11 from non-x11 applications.

When attempting to replicate this, I find that hwen command-tabbing (or clicking) back into X11, anything selected in X11 is also deselected.

This behavior is probably constructed to ensure that X11 always has the aqua
clipboard.

The logic seems to be that when you switch from an Aqua app to an X11 app,
X11's clipboard is filled with the Aqua clipboard, in order to ensure that
it has the Aqua clipboard...even if the Aqua clipboard was filled prior to
the last switching into X11.

A good solution would be for X11 to check when the clipboard was
filled...and if X11 has been the front app since then, to not fill the X11
clipboard with the Aqua clipboard when switching from an Aqua app to X11.

Another solution would be to tie the X11 clipboard to the Aqua
clipboard...so the Aqua clipboard would be filled with X11 goodness on a
select in X11, instead of requiring the user to press command-C. I can see
the appeal of two clipboards (one within X11 and one within Aqua), but the
notion of storing the Aqua clipboard while still clicking and pasting around
in X11 does seem kind of inelegant...and the "select is copy  when you're in
X11" rule is very likely intuitive for those who use X11 a fair amount; new
users of X11 who do so under Mac OSX would probably figure it out pretty
quickly anyway.

Note that this second solution would also solve the
copying-from-X11-when-copied-text-is-deselected problem...because the X11
and Aqua clipboards would be merged.

--Adam
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden
References: 
 >Re: copy and paste between Aqua and X11 applications? (From: Vernon Williams <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: Vincent Lefevre <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: Rich Cook <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: Vincent Lefevre <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: Rich Cook <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: Ben Byer <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: Bill Campbell <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.