Hi! I've been trying to implement a module to allow for key releases to be detected. This feature is important for "display only when XX key is down" menus. Currently the code works perfecly except when the focus is at an Icon, and I'm trying to figure out why this happens.
Trapping key releases would be easy if there was a way of asking X for specific events without having to specify the window where they occur (that is, we would only ask for keyreleases and X would send us ALL the keyreleases). But as this currently isn't availiable, we have to find other ways. I did it by selecting keyreleases from the window that has focus, as the focus changes. So my question is: how does Fvwm trap the X key events? Does it select the keypress event for every window it manages? Does it do it other way? Thanks! Renato Caldas