The window should remain on top of all other windows. Is this possible with a simple x11 / xlib? Googling for "Always on top" and "x11" / "xlib" returns nothing.
I would avoid toolkits like GTK + if possible.
I am using Ubuntu with the gnome desktop. The window menu has the option "Always On Top". Is this provided by the X server or window manager? If the second takes place, is there a common function that can be called for almost any wm? Or how to do it using the "X11-general" method?
Edit: I implemented a fizzer answer, now having the following code:XSelectInput(this->display, this->window,
ButtonPressMask |
StructureNotifyMask |
ExposureMask |
KeyPressMask |
PropertyChangeMask |
VisibilityChangeMask );
if (XPending(this->display) >= 0)
{
XNextEvent(this->display, &ev);
switch(ev.type) {
case VisibilityNotify:
XRaiseWindow(this->display, this->window);
XFlush(this->display);
break;
}
}
But event handling and promotion are almost never performed, even my mask is correct ?!