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 2007-08-13 23:33:30 -0700, Ben Byer wrote:
> 1) X11.app has some specific rules for copy and paste logic that are not 
> always intuitive or even correct.   When should data be transferred from 
> one of the X11 buffers to the Aqua pasteboard?  And vice versa?

I think it should work in the following way (since Aqua doesn't have
a concept of PRIMARY selection):

* Have two options:
  A. Autocopy of PRIMARY selection.
  B. X11 CLIPBOARD support (for X11 users who don't use the PRIMARY
     selection).

* From the Aqua side, when the contents of the Aqua clipboard changes:
  1. This should also change the X11 PRIMARY selection.
  2. When option B is enabled, change the contents of the X11 CLIPBOARD
     too.

* From the X11 side, when the PRIMARY selection changes:
  1. When option A is enabled, change the contents of the Aqua clipboard.
  2. When option A is not enabled, provide Cmd-C to copy the contents of
     the PRIMARY selection to the Aqua clipboard. Note: this is useful
     even when option B is enabled, because not all X11 applications
     have CLIPBOARD support (i.e. Ctrl-C in X11 cannot always replace
     Cmd-C from X11.app).

* From the X11 side, when the CLIPBOARD changes:
  When option B is enabled, change the contents of the Aqua clipboard.
  Note: when option A is enabled, this should have no effect under
  normal conditions, because when the CLIPBOARD changes, it should
  have the contents of the PRIMARY selection.

When both options A and B are enabled and the PRIMARY selection changes,
X11.app should probably change the X11 CLIPBOARD too, since one has:
PRIMARY selection changes ==> Aqua clipboard changes ==> X11 CLIPBOARD
changes.

-- 
Vincent Lefèvre <email@hidden> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
 _______________________________________________
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>)
 >Re: copy and paste between Aqua and X11 applications? (From: "Adam D. I. Kramer" <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: Ben Byer <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.