On Mar 14, 2010, at 07:05, Rob Arthan wrote:
Well, we actually provide a clipboard manager now, so you shouldn't
need one. You can turn off the checkbox titled "Update Pasteboard
when CLIPBOARD changes" to get a "Leopard-like" behavior without this
clipboard manager.
I have now demonstrated using a failsafe session on Ubuntu that Motif
copy and paste does not require a clipboard manager to work properly.
What Motif flavor are you using? Please try that failsafe program on XQuartz. Don't compile it on darwin and run it there, ssh to your ubuntu box and run the binary that works for you.
Next, try running your OSX binary on your ubuntu Xserver. If that fails, switch your motif flavor (lesstif vs openmotif) to see if that is the problem.
Is there some combination of options to Quartz-WM or a better
clipboard manager which will get me out of this hole.
quartz-wm doesn't dprovide this functionality any more. It's
provided by xpbproxy which runs as a thread within the XQuartz
server. The options are those shown in the preference pane.
If you disable all options in the pasteboard pane, then you are
effectively isolating X11's CLIPBOARD and PRIMARY buffers from
NSPasteboard
I presume this also make xpbproxy release ownership of the CLIPBOARD_MANAGER selection so that you can run another clipboard manager (?).
Yes. Otherwise you wouldn't be able to run xclipboard. That is what is meant by the descriptive text under that checkbox.
In the past, I have encountered a buggy clipboard manager in Gnome (now fixed) that stopped Motif copy and paste working. I am wondering now whether there are circumstances under which xpbproxy is somehow blocking things when the pasteboard preferences should be disabling.
If you disable it, xpbproxy does absolutely nothing. You can checkout the code to verify that.
and there's nothing
externally that could really fix it. My guess is that xclipboard
does something as a side effect that kicks your application into
behaving...
Some people have issues with the "Update Pasteboard when ..." options
in Pasteboard preferences, so I'd recommend disabling them while you
debug your application (which you've already done).
However, the problem now turns out to be intermittent. Restarting X has cured it on two different Macs (even though it had persisted for days and even carried on after a reboot of one of them). On both machines Motif copy and paste is working today even with the Pasteboard preferences all enabled.