Re: How to keep a Window always in the forground



On Fri, Jan 03, 2003 at 04:47:25PM +0100, günther wrote:
Hallo does GTK have a function to keep a popup or dialog window always
in the
forground of the Desktop. 
The problem making such window modal the parent window can not become an
focus as well.
But clicking in this window it will become an active one on the desktop
and may can hide
the dialog window. So a user may search the dialog window an can not
find because of behind
his modal main window.


With GTK+ 2.2 (and perhaps 2.0, I forget), if you set the dialog modal
then it will be marked as such so the window manager knows that it's
modal. If the dialog is then placed behind other windows, it is a bug
in the window manager. You will need to report that bug to your window
manager's maintainers. There's nothing GTK+ can do about it really.

What you can do on the application side is be sure you use GtkDialog
for your dialog windows (vs. plain GtkWindow), and if a window has a
transient parent be sure you call gtk_window_set_transient_for() or
otherwise specify the parent so the WM knows which parent window the
dialog is popped up from.

But if doing those things doesn't work, you need to get a better
window manager.

Havoc




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