[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

486.0. "How many generations of windows ??" by 22082::GABRIEL (Thank You Very Little) Mon Mar 27 1989 19:45

    
    This question is sorta related to note 483...
    
    In a simple application with a call to XCreateWindow running
    with the DECwindows window manager, EXACTLY what windows are
    created.
    
    I have played around with XQueryTree and noticed that the window
    I created with XCreateWindow has 4 parents before it gets to
    the root window.  Using xwininfo (on ULTRIX) I have discovered
    the title bar is a window, the shrink to icon icon, the push to
    back icon, and the resize icon are all one window, the background is
    a window, but I still seem to be missing a coupla others.
    
    Can anyone shed some more light on this for me ???
    
    
    thanks,
    
    -jg
    

T.RTitleUserPersonal
Name
DateLines
486.1Wheels within wheels...TBD1::BURLEIGHDave, DECwindows TrainingTue Mar 28 1989 07:4328
XCreateWindow creates a single window. This is what is happening:

	1) You call XCreateWindow to create a window as a child of
	   the root window;

	2) You call XMapWindow to make the window viewable;

	3) Because the window manager has selected SubstructureRedirectMask
	   on the root window, you MapWindow request is not performed
	   immediately by the server, but is sent to the window manager
	   as a MapRequest event;

	4) The window manager creates a "frame" window slightly bigger
	   than your window, as a child of its "pseudo-root" window,
	   and inside this frame, it creates the title bar and other
	   buttons;

	5) The window manager "reparents" your window to be a child of
	   its own "frame" window;

	6) The window manager honors your MapWindow request by mapping
	   both your window and its frame;

	7) Voila! You see a DECwindows-style application window, with
	   all the trimmings!

Dave

486.2See ELKTRA::DW_EXAMPLES note 117CVG::PETTENGILLmulpTue Mar 28 1989 15:282
See xlswins which will list all windows, or a subtree.