• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Copy and paste in Motif apps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copy and paste in Motif apps


  • Subject: Re: Copy and paste in Motif apps
  • From: Rob Arthan <email@hidden>
  • Date: Sun, 14 Mar 2010 14:05:58 +0000
  • Organization: Lemma 1 Lte.

Jeremy,

Thanks for the quick reply.

On 14/03/2010 03:03, Jeremy Huddleston wrote:


On Mar 13, 2010, at 04:44, Rob Arthan wrote:

Since I upgraded to Snow Leopard, I am having problems with a Motif
application that I develop and use. Within one process instance of
the application, text copy and paste only works if I deselect
everything in the Pasteboard tab of X11 preferences (as under
Leopard, I think). However copying and pasting between different
process instances only works if I also run xclipboard, and then not
very well because xclipboard doesn't transfer the character set
that my application uses properly. As the application includes a
general purpose editor, it is not really acceptable to have a
flakey copy-and-paste capability.

What has changed so that I need to run a clipboard manager?

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.


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 (?).


... if you need to run xclipboard for your application
to work, then your application is likely buggy,

I should have explained that it is not just my application (which is actually quite mature and has worked fine on other X Windows platforms for years). I see this behaviour in any Motif application with a text widget (but see below).


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.

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
  • Follow-Ups:
    • Re: Copy and paste in Motif apps
      • From: Jeremy Huddleston <email@hidden>
References: 
 >Copy and paste in Motif apps (From: Rob Arthan <email@hidden>)
 >Re: Copy and paste in Motif apps (From: Jeremy Huddleston <email@hidden>)

  • Prev by Date: Re: Re(2): X11 Has to Be Launched Twice to Function
  • Next by Date: Re(4): X11 Has to Be Launched Twice to Function
  • Previous by thread: Re: Copy and paste in Motif apps
  • Next by thread: Re: Copy and paste in Motif apps
  • Index(es):
    • Date
    • Thread