If it's a popup, maybe try (in your XLib code) passing the flag CWOverrideRedirect in XCreateWindow() when you create the window/popup. But it'll take control away from the window manager. (So...