Re: Some interesting questions.



Stephane Duguay <sduguay Matrox COM> writes:

1) I want to make a window always on top.  I've tried using
gtk_window_set_transient_for(...);  I'm using KDE and my window doesn't stay
on top.  Even If it had worked, the window would only be "on top" of that
window... I would like to have a "always on top" window for all windows.
There's maybe a lower level way to do it... any help welcome :-)

Look at the window manager spec on http://www.freedesktop.org, I think
it has some kind of layer hints. But don't count on it always working
- if nothing else, what if another window also asks to always be on
top, the window manager is going to have to deny one of you. ;-)

2) My second question is not gtk-related but maybe someone can help me... I
need to query Xfree86 to know if Xinerama is currently active or not. I know
how to query the driver to check with him if dual-head is ON but cannot
assume that xinerama is "on".


Poking in Xinerama.h, this looks promising:

  Bool XineramaIsActive(Display *dpy);

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]