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 Aug 11, 2007, at 6:32 PM, Vincent Lefevre wrote:

On 2007-08-11 13:48:31 -0700, Adam D. I. Kramer wrote:
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.

Yes, it seems that when switching to X11, quartz-wm asserts the PRIMARY
selection. Something like that. As a consequence, the previous selection
in X11 is discarded.


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.

I agree, except that it should be the PRIMARY selection, not CLIPBOARD (or make this configurable).

I don't really understand X11 clipboards, but why not use both? I would just make any PRIMARY selection go to the Aqua clipboard at the moment it is done being selected. When the CLIPBOARD is copied to, it should replace the Aqua clipboard with its contents. That way, the last thing copied from in X11 is in the Aqua clipboard. And as you say, ideally, the ultimate behavior should be according to the user's preference.


When switching into X11 from Aqua, I'd say that the Aqua clipboard should replace both CLIPBOARD and PRIMARY.

The combination of these copy and paste behaviors will lead to the most overall consistency. It would do the right thing under most circumstances, whether you use CLIPBOARD or PRIMARY or are choosing to copy or paste. The only downside is that you won't have visual confirmation of what the PRIMARY selection is, after switching into X11 from Aqua. But it's worth it to me. If you select something in X11, then paste into Mail, then middle click in xterm, it will work as you would want it to. Same with any other combination I can think of.


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.

Yes, I'd like that. Of course, this could be optional.

BTW, I've configured both iTerm and Firefox to behave like under X11:
selecting something automatically copies the data to the Aqua clipboard
and I can paste with the middle mouse button. So, merging the Aqua
clipboard and the X11 PRIMARY selection would make things even more
consistent.



--
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

--
✐The primary task of most software projects is to discover and resolve these unknowns rather than to build a system. -- Philip G. Armour
--
Richard Cook
✇ Lawrence Livermore National Laboratory
Bldg-453 Rm-4037, Mail Stop L-557
7000 East Avenue, Livermore, CA, 94550, USA
☎ (office) (925) 423-9605
☎ (fax) (925) 423-6961
---
Information Management & Graphics Grp., Services & Development Div., Integrated Computing & Communications Dept.
(opinions expressed herein are mine and not those of LLNL)


_______________________________________________
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: Vincent Lefevre <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.