Re: copy/paste from X11 to Aqua does not work initially
Re: copy/paste from X11 to Aqua does not work initially
- Subject: Re: copy/paste from X11 to Aqua does not work initially
- From: Vernon Williams <email@hidden>
- Date: Thu, 24 Sep 2009 14:25:56 -0500
Thursday, September 24, 2009, 1:26pm
I have a PowerPC G5 running Leopard 10.5.7, with X11 version
XQuartz 2.3.3.2 (xorg-server 1.4.2-apple42). My X11 Pasteboard
options are all turned on except the last (Update Pasteboard
immediately when new text is selected).
I also have a Macbook Pro running with 10.5.7, also with 2.3.3.2,
with the same X11 preferences.
I just tested the Macbook Pro, and the same thing happens. I.e.,
pasting from X11 to Aqua does nothing (just beeps) until I do the
first copy in Aqua. Pasting within X11 works fine.
I probably won't bother upgrading to 2.4.0 right now, just to
test it, since everything else in X11 is working fine, and this is
really a non-problem now that I know how to fix it in 2 seconds.
I just reported it in case somebody else had seen it and had not
figured it out, so they would know how to fix it.
And actually, it doesn't look to directly be an X11 problem, since
it is fixed by doing something outside of X11 (i.e., by copying
text once in Aqua), though X11 could probably do something
to test for it and rectify it.
Have you tried to reproduce it? For me it is simple. Just restart
one of the Macs, then copy some text in X11 and try to paste it
into Aqua, before copying any text in Aqua.
As I said before, my suspicion is the Aqua clipboard does not
get allocated until the first copy in Aqua and is probably null
until then. And X11 is probably expecting it to be non-null and
not doing anything if it is null. If so, X11 could probably fix it
by just allocating the Aqua clipboard if X11 tries a copy and
finds the Aqua clipboard is null.
Has anything like this been done in 2.4.0? If not, I would
suspect it is still present.
Though most people probably would not notice it, or only
occasionally, if they simply accidentally did an Aqua copy before
an X11 copy, especially if they did not restart very often.
I work mostly on my G5, which normally stays up for weeks or
months (barring power failure, which has bitten me twice lately,
making me notice the problem and figure out how to fix it, though
I had noticed it a time or two before but not figured out how it had
magically started working again eventually).
I had not noticed it on my Macbook Pro before until looking for it
today, since I don't do much editing on it, disliking the keyboard,
using it mainly for web surfing outside home and showing people
stuff, when I am mainly using Aqua, not X11.
I just did a little more testing on my Macbook Pro, and I
discovered an interesting nuance. I work mostly in Nedit,
which is where I noticed it, where I usually use Ctrl-C to copy
text. But I found that if I use X11's copy (Command-C) to copy
text, everything works fine. So the X11 copy must be handling
it properly, but Nedit is not. So I guess now the question is, is
this something that would have to be fixed in Nedit, or is it
something Nedit calls that could be fixed? I am using an
ancient Nedit binary (built by me on June 5 of 2002).
Vernon Williams
On Sep 23, 2009, at 1:46 AM, Jeremy Huddleston wrote:
On Sep 22, 2009, at 14:07, Vernon Williams wrote:
Tuesday, September 22, 2009, 3:55pm
Several times lately I have found that copying text from X11
to Aqua would not work for a while after restarting my
computer (a PowerPC G5 running Leopard, 10.5.7),
forced by some power outages.
What version of X11 are you running? Try updating to 2.4.0 if
you're not on it.
What are the clipboard preferences set to in your X11 preferences?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden