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: Tue, 16 Mar 2010 17:46:35 +0000
- 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.
"failsafe session" = Linux jargon for an X session that starts up with
only the X server and an xterm and no other X applications, so no window
manager, clipboard manager etc.
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.
As I said in my last post, this problem appears now to be intermittent
(although long-lasting once it starts happening). It is now obstinately
refusing to come back, so further intvestigations are on hold for now.
If it does recur, I will certainly try what you have suggested.
Thanks for your assistance,
Rob.
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.
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden