I don't think you can find a reliable solution to putting an overlay over an X11Embedded widget. Maybe you should use some other mechanism than XEmbed?