Catching X raise events with FXRuby

My application is using gnuplot as a sub-process. I would like the
window of my application to always stay on top of the gnuplot graph
window. How can I do this with FXRuby? Can I catch the raise X events?

Guillaume.