[Magic-dev] Re: Magic Troubles
Philippe Pouliquen
philippe at alpha.ece.jhu.edu
Tue May 27 12:34:40 EDT 2008
Hi Tim, Gagi,
Yes, NumLock (which I don't ever use, or I would have seen this when I
suggested the patch) is also Mod2Mask on Linux/FreeBSD. Hence, there is
no way to make vanilla Xorg/Xfree86 systems and MacOSX systems compatible.
It looks like we will need to revert to the old code and add an #ifdef to
handle the Mac OS X.
Alternatively, there may be a way to handle this in "configure" by
synthesizing a key press. I've never tried this myself, but I seem to
recall that X windows allows you to fake user interaction with a window.
Of course, this can only work if X windows is running at the time
configure is run.
> So, (1) if you have some kind of keyboard scanning program (there's one
> you can probably still get called "xkeycaps"), then maybe you can find
> out which of the modifier masks is on, and why.
All vanilla X windows installations should come with "xev", so you can try
that if nothing simpler is available. Look for the "state" variable.
(The mapping of state to modifier is defined in X.h.)
Philippe
More information about the magic-dev
mailing list