Re: pasting into X11 applications from Aqua apps
Re: pasting into X11 applications from Aqua apps
- Subject: Re: pasting into X11 applications from Aqua apps
- From: Ben Byer <email@hidden>
- Date: Thu, 9 Aug 2007 19:19:23 -0700
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)
This email sent to email@hidden