Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pasting into X11 applications from Aqua apps




On Aug 9, 2007, at 12:36 PM, Dave Williss wrote:

I too can copy from an X11 app (one of our own) and paste to a Mac app (tested using Terminal).

I wasn't running anything in X11 at the moment, so I shut it down and restarted. Worked fine.

I *can't* however copy from another app and use Cmd-V to paste into an X11 app. It just beeps at me if I try, and the Paste item on the Edit menu is disabled. The only things on the Edit menu which are enabled are Copy and Special Characters, the later of which pops up the character pallette but trying to Insert doesn't do anything. I would expect at least some kind of X event, but xev doesn't report anything.

One thing that's kept this (seemingly simple) problem from being resolved is that it's not entirely clear how it should work.


Obviously, you want it to paste when you hit Cmd-V -- and we could probably assume you want it to paste into the frontmost window. However (AFAIK -- could be mistaken), there is no standard X11 event that can be sent to "paste". A few potential solutions come to mind:

A) just send that app a middle-click -- this would work for many this, but what if you already have text selected somewhere?
B) Translate Cmd-V to Control-V, since many modern X apps support that to paste -- but what about those that don't?
C) Convert each character into a keystroke ... :(


I'm open to suggestions.
Ben

_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden
References: 
 >Re: copy and paste between Aqua and X11 applications? (From: Vernon Williams <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: Vincent Lefevre <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: Rich Cook <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: "Mark E. Perkins" <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: Ben Eisenbraun <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: "Mark E. Perkins" <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: "Adam D. I. Kramer" <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: Jonas Maebe <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: "Adam D. I. Kramer" <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: "Mark E. Perkins" <email@hidden>)
 >Re: copy and paste between Aqua and X11 applications? (From: Dave Williss <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.