but it's OK for C, and not OK for perl.
Why not?
You can always setup a timer (say 30ms) and check
In reply to Re: Gtk2 X11 GrabKey by Anonymous Monk in thread Gtk2 X11 GrabKey by basiliscos