another xmodmap problem
another xmodmap problem
- Subject: another xmodmap problem
- From: Niels Bogaards <email@hidden>
- Date: Wed, 27 Apr 2005 17:44:57 +0200
Hello,
I have a problem with xmodmap that I think is not covered by the
various posts in the list's archives.
Here's what I want to do:
- I have an X application, using open-motif, that needs to be
double-clickable from OSX's Finder
- the app's menu's use Alt hotkeys (accelerators), which I would like
to map to the option key
- the app is meant to run on user computers; modifying .Xmodmap or
.xinitrc is no option
So, what I tried is make an AppleScript application which executes a
shell script. In this script I launch X, using the Open-X11 script I
found here
http://www.chemistry.ucsc.edu/~wgscott/mystuff/zsh/Library/init/zsh/
local-functions/open-x11 , which basically launches X if it needs to
and then executes the arguments as programs.
Now in my script I want to first modify my keymap, so that option does
Alt, and then launch my app. All works well, but: after my app is
launched, something resets the keymap (in >75% of the cases). A couple
of things I noticed:
- putting any amounts of sleep in my script doesn't help
- when I manually do the xmodmap calls in X's xterm it works fine
- manipulating X11.app's preferences (Follow system keyboard layout
etc.) does not help
- in .xinitrc I see that the xterm (nice program) is launched before
the quartz window manager.
My guess at this moment is that quartz-wm reads and sets a keymap as
well, and it feels like the moment it does that is not triggered by a
time, but rather the fact that some interaction has taken place (like
typing into an xterm).
So, then I would need a method to kick the wm and force it to finalize
its initialization phase.
Does this make sense? Or am I missing another point?
Thanks,
Niels
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden