Re: Copy and paste in Motif apps
Re: Copy and paste in Motif apps
- Subject: Re: Copy and paste in Motif apps
- From: Rob Arthan <email@hidden>
- Date: Wed, 26 May 2010 15:42:39 +0100
- Organization: Lemma 1 Lte.
On 14/03/2010 16:27, Jeremy Huddleston wrote:
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.
I have a bit more information about the failure. What seems to happen is
that copy-and-paste fails randomly on starting an X11 session and then
sometimes stops working after a while. Turning "Enable Syncing" on in
the pasteboard dialogue in the X11 Preferences will generally get it
working again - even if you immediately turn it off again. Some
instances of the Motif application will persistently fail to do
copy-and-paste properly while in other instances it comes and goes. The
problem seems to be much worse on my desktop iMac than it is on a
MacBook. Is it possible that xpbproxy is dying or getting into some kind
of deadlocked situation for some reason?
Regards,
Rob.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden