Re: modal windows vs. WM_TRANSIENT_FOR



On Tue, Dec 17, 2002 at 12:37:59AM +0100, Matthias Clasen wrote: 
> It seems that this (setting WM_TRANSIENT_FOR to root) is a bug in old
> gtk versions which has found its way into a standard. 
> 

I don't think it originates with GTK, it's older than that.  I'm
pretty sure I've seen it in non-GTK apps.

I believe the basic reason for setting WM_TRANSIENT_FOR to root was to
mark the semantic type as a dialog without having to actually specify
the parent.
 
> "If the WM_TRANSIENT_FOR hint is set to another toplevel window, the 
> dialog is modal for that window; if WM_TRANSIENT_FOR is not set or set
> to the root window the dialog is modal for its window group."

Yup.

Havoc



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