Re: [gtk-list] Re: semi modal window ;-)



> >Ok, after reading several FAQ's and the source to some degree I understand
> >that modal windows are considered a nono, but having to deal with ignorant
> >users, I have to compensate for their lack of a clue and would like to do
> >so by at least forcing a particular input window to always remain on top.
> 
> You *should* be able to do it by giving it the `dialogue' window type. Then it 
> should always be kept above the application's top-level windows. I don't know 
> if GTK actually supports this, however; Motif certainly does (and GTK's better 
> than Motif, right?).
> 

My thoughts exactly, however this does not work. 

According to the source for GDK:

  switch (private->window_type)
    {
    case GDK_WINDOW_DIALOG:
      XSetTransientForHint (private->xdisplay, private->xwindow, xparent);


According to man XSetTransientForHint():

PROPERTIES
       WM_TRANSIENT_FOR
                 Set by application programs to indicate to the
                 window manager that a transient top-level win-
                 dow, such as a dialog box.


So this should work according to the documentation, and Netscape seems
to able to pull it off, so what's the magic incantation?

Marc.

----------------------------------------------------
Marc van Kempen                 BowTie Technology     
Email: marc@bowtie.nl            WWW & Databases
tel. +31 40 2 43 20 65         
fax. +31 40 2 44 21 86         http://www.bowtie.nl
----------------------------------------------------





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