Thursday, October 13, 2011, 5:20pm
This might be the same small bug I reported a year or so ago on Leopard (10.5.7) with XQuartz 2.3.3.2 (xorg-server 1.4.2-apple42) on a PowerPC G5, where I had trouble copying in X11 and pasting into regular Mac apps until I first did a copy in a regular Mac app.
Specifically, if I rebooted my Mac, fired up Nedit (in background) from Terminal, selected some text in Nedit, copied the selected text via the Nedit copy menu, and tried to paste the copied text into Terminal with command-V, all I would get would be a beep.
However, if I selected some text in Terminal and copied it with command-C, then I could go back into Nedit, select and copy some text there, and then successfully paste the selected text into Terminal.
This was an annoying bug, which took me some months to find a solution for (it would always eventually go away, but it took some effort to figure out why). There may well be other things that will fix it as well. Once I figured out how to fix it, it wasn't a big deal.
The bug is still there (I haven't updated anything since then). I just rebooted an hour or so ago (unrelated to this, to try to fix a network problem, unsuccessfully), hadn't done any copies or pastes yet, so I copied some text in Nedit and tried to paste it into Terminal, and it failed (with a beep), until I copied some text in Terminal first. Perhaps the copy buffer isn't being allocated until the first regular Mac copy, or something like that.
I just tried the same thing on my Intel MacBook Pro (same level of Leopard and XQuartz), had exactly the same thing happen.
In my X11 Preferences, I have all options turned on except the last, "Update Pasteboard immediately when new text is selected." That is, I have "Enable syncing", "Update Pasteboard when CLIPBOARD changes", "Update CLIPBOARD when Pasteboard changes", and "Update PRIMARY (middle-click) when Pasteboard changes" turned on.
As a note, I have X11 set to run on start up, whenever I reboot, and I never close it, so it is always running until I shut down, typically only every few months on my G5 desktop system.
Vernon Williams On Oct 13, 2011, at 12:54 PM, Jeremy Huddleston wrote: On Oct 13, 2011, at 9:22 AM, Daniel . wrote:
On Oct 13, 2011, at 1:56AM, Jeremy Huddleston wrote:
On Oct 12, 2011, at 16:08, Daniel . wrote:
On Mac OS X 10.6.x using XQuartz 2.6.3 I cannot copy from X11 applications until the 'sync clipboard' preference is toggled off and on. Copy seems to work within x11 applications but won't make it to the Mac clipboard until I toggle this pref setting.
Is there some command I can run to fix this issue?
I'm not sure I understand the problem you are having. Can you be more specific? How are you copying? What are you copying?
Just select a word or phrase and select copy from the apps menu and try to paste it into a Mac native application, like Text Edit. I did not try an image, just text.
This only happens at first boot and never again no matter how often I were to close and re-open XQuartz. But once I have to reboot, I have to go toggle 'sync clipboard' again.
Using terminal, I tried to toggle 'sync clipboard' using defaults, but this did not make a difference.
The is a new install on a new HDD. I have other installs of 10.6.x where I don't have this problem. I have friends/acquaintances who have this problem too, but they are just 'living with it'.
I mainly use XQuartz with WINEd applications but this also occurs in xterm too.
-Daniel
I've heard of this "initially" broken bug from at least one other person, but I've never been able to reproduce it. Can you give me exact steps using applications that are bundled (so we don't run into issues with different versions of emacs for example). Does it happen when you copy PRIMARY by choosing "Copy" from the XQuartz menu or is it just CLIPBOARD when choosing "Copy" from the X11 client's menu? --- Jeremy Huddleston
|