more info about WM_TRANSIENT_FOR...



hi all,

this is from the ICCCM manual. i'm trying to figure out what to
do with it, but i'm real new to coding, so i may not be able
to implement this in gtk. gtk does need this. i have window
maker and blackbox -- both of them do account for this 
WM_* when managing windows.

4.1.2.6. WM_TRANSIENT_FOR Property

The WM_TRANSIENT_FOR property (of type WINDOW) contains the ID of 
another top-level window. The implication is that this window is a
pop-up on behalf of the named window, and window managers may decide 
not to decorate transient windows or may treat them differently in
other ways. In particular, window managers should present newly mapped 
WM_TRANSIENT_FOR windows without requiring any user interaction, 
even if mapping top-level windows normally does require interaction. 
Dialogue boxes, for example, are an example of windows that
should have WM_TRANSIENT_FOR set. 

It is important not to confuse WM_TRANSIENT_FOR with override-redirect. 
WM_TRANSIENT_FOR should be used in those cases where the
pointer is not grabbed while the window is mapped (in other words, 
if other windows are allowed to be active while the transient is up). 
If other windows must be prevented from processing input (for example, 
when implementing pop-up menus), use override-redirect and grab the
pointer while the window is mapped. 

brent



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