nanogui: Child Windows


Previous by date: 26 Jan 2001 19:04:36 -0000 Re: Child Windows, Greg Haerr
Next by date: 26 Jan 2001 19:04:36 -0000 Re: Compilinging .xbm bitmap file into Nanox pixmaps, Alex Holden
Previous in thread: 26 Jan 2001 19:04:36 -0000 Re: Child Windows, Greg Haerr
Next in thread: 26 Jan 2001 19:04:36 -0000 Re: Child Windows, Alex Holden

Subject: Re: Child Windows
From: "Greg Haerr" ####@####.####
Date: 26 Jan 2001 19:04:36 -0000
Message-Id: <057b01c087ca$58e94500$15320cd0@gregh>

: i've been around with this decorating thing for quite some time and i have a 
: few words to say on the decoration issue. It is rather wierd for the 
: windowmanager to look for parents of windows and decorate them if they are 
: children of GR_ROOT_WINDOW_ID. 

Yes, it probably is wierd.


: In my own humble opinion there should be a 
: bit corresponding to each window saying "Decorate me" (Like GTK_TOP_LEVEL) 
: and if that is set then the fancy border should be drawn. Most of the 
: windowing systems work this way and that should be the way to go for nano-X 
: too. There may be windows which are NOT children of the root window and 
: still need decoration (like in apps with multiple windows.... windows mIRC 
: might be one of them). Or there may be windows which are children of the 
: root window but there is no sense decorating them (menus on right click are 
: an example of these).

Perhaps the change here could be the following:  Remove the
NODECORATE bit, and add a DECORATE bit.  Then, change the
GrNewWindow default to DECORATE.  Then, change all programs
that use GrNewWindowEx to use DECORATE. 

This solution would allow child windows to be decorated, something that
isn't possible now.  (However, this is fraught with issues, since the
window manager has to reparent the window in order to draw the
decorations, and your previous child window would now have a 
different parent, and ITS parent would need to be reverted to 
the original parent, rather than the root window, which is always the
case now.)  Also, the window manager uses a single SelectEvents
on GR_ROOT_WINDOW_ID and GR_EVENT_MASK_CHLDUPDATE
to get all map/unmap events for decoration, that scheme would have
to change.

Finally, in X, you don't have to specify a window manager decoration
bit to get a top-level window decorated, doesn't that depend on the
window manager default hints?

Regards,

Greg


: This whole idea of decoration needs a bit of rethinking (maybe many versions 
: later.. but sometime !)
: 
: Regards,
: Amit Kulkarni
: http://www.amitkulkarni.com
: 
: >From: Jordan Crouse ####@####.####
: >To: Mark Trinidad ####@####.####
: >CC: ####@####.####
: >Subject: Re: Child Windows
: >Date: Thu, 25 Jan 2001 12:55:36 -0700
: >
: >When you create a new FLTK window, the code automatically parents it to
: >GR_ROOT_WINDOW_ID.  The window manager sees this, and decorates the
: >window accordingly.  So the solution is as follows:
: >
: >You need to create the window, and you need to purposely reparent it
: >(since the code doesn't reparent on its own). So, for example:
: >
: >foo  = new Fl_Window(0,0,100,100);
: >bar = new Fl_Window(0,0, 50, 50);
: ><....>
: >
: >bar->end();
: >bar->parent(foo);
: >foo->end();
: >
: >That way, the child window is appropriately parented, and the window
: >manager won't get involved.
: >
: >If anyone can determine a good way to automatically handle child
: >windows, please feel free to speak up!
: >Jordan
: >
: >Mark Trinidad wrote:
: > >
: > > Hi Guys,
: > >
: > > I created an FLTK program and recompiled it under
: > > FLNX.  Thanks to some of your help, I managed to get
: > > my program compiled and running.
: > >
: > > Well... my issue right now is with child windows.
: > > Under FLTK everything works fine, but when I do my
: > > FLNX build I have my child windows popping up as
: > > parent windows.  Is the support for child windows not
: > > yet complete?  Or is there something I need to do with
: > > my code?  Thanks.
: > >
: > > -Mark
: > >
: > > __________________________________________________
: > > Do You Yahoo!?
: > > Yahoo! Auctions - Buy the things you want at great prices.
: > > http://auctions.yahoo.com/
: > >
: > > ---------------------------------------------------------------------
: > > To unsubscribe, e-mail: ####@####.####
: > > For additional commands, e-mail: ####@####.####
: >
: >---------------------------------------------------------------------
: >To unsubscribe, e-mail: ####@####.####
: >For additional commands, e-mail: ####@####.####
: >
: 
: _________________________________________________________________________
: Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
: 
: 
: ---------------------------------------------------------------------
: To unsubscribe, e-mail: ####@####.####
: For additional commands, e-mail: ####@####.####
: 


Previous by date: 26 Jan 2001 19:04:36 -0000 Re: Child Windows, Greg Haerr
Next by date: 26 Jan 2001 19:04:36 -0000 Re: Compilinging .xbm bitmap file into Nanox pixmaps, Alex Holden
Previous in thread: 26 Jan 2001 19:04:36 -0000 Re: Child Windows, Greg Haerr
Next in thread: 26 Jan 2001 19:04:36 -0000 Re: Child Windows, Alex Holden


Powered by ezmlm-browse 0.20.