I was trying to use xbindkeys to capture the "X" key press event and
execute a given script.

Such script runs in the background and limits itself to add 1 to a
counter.If the counter reach 5 it reboots.

The problem is that once xbindkeys "maps" the key to the script the
"X"-key stop working as expected. If I press it in an xterm while
xbindkeys is running all I see is a instant cursor "blink".

I downloaded xbindkeys source code and tried changing XNextEvent (d,
&e) to XPeekEvent (d, &e);
in the "main-loop" with no success.

Does anyone had a similar problem ?

Regards!

E.Arizón Benito