nanogui: Window Manager Queries


Previous by date: 13 Dec 2001 17:28:51 -0000 Re: FLTK based desktop enviroment., Jeff Webb
Next by date: 13 Dec 2001 17:28:51 -0000 Re: How to calibrate the touch screen of iPaq?, Greg Haerr
Previous in thread: 13 Dec 2001 17:28:51 -0000 Re: Window Manager Queries, Jordan Crouse
Next in thread: 13 Dec 2001 17:28:51 -0000 Re: Window Manager Queries, Darran D. Rimron-Molloy

Subject: Re: [nanogui] Window Manager Queries
From: "Greg Haerr" ####@####.####
Date: 13 Dec 2001 17:28:51 -0000
Message-Id: <002e01c183fb$498b9940$3aba46a6@xmission.com>

: I am guessing the easiest way to do this is going to be to "unmap" the
: parent window (ie, the reparented "appilication")

The parent window is not the reparented application.  Instead, the
reparented application is the child window to a new window
created by the window manager.  This new parent window is a
child of the root window.  Unmapping any of these windows works
as expected, that is, only it and it's children vanish, not it's parents.


 and pass an event/signal
: to the "desktop" manager to handle the minimised icon or to have the WM
: create one itself in GR_ROOT_WINDOW 

There are no events/signals sent between processes or windows.  Instead,
the window manager takes advantage of the GR_EVENT_TYPE_UPDATE
(and CHLD_UPDATE) events that are sent by Microwindows to
those who've selected for the events whenever something important
has happened with that window or it's children.  In this case, the
window manager is interested in the GR_UPDATE_MAP and
GR_UPDATE_UNMAP subevent types that are sent
whenever any window is mapped or unmapped.  In this way,
when a new application attempts to map a window as a child
of the root, then Microwindows sends an GR_UPDATE_MAP event
for the root window, and the window manager then reparents
the window to a new window, thus creating the frame.

To implement icons, the window manager will get a button down event
in an area reserved for minimize in it's frame window.  When pressed,
the window manager will unmap the application window, and then
move and redraw the frame window to resemble an application icon.
If the child application window weren't unmapped, then when the
frame window was drawn, the (now quite small client area) inside
the icon frame would still display the application.

Regards,

Greg





- unless anyone has any better ideas?
: 
: I am FULLY open to suggestions..... Please?
: 
: -Cheers, Darran
: 
: 
: 
: 
: ---------------------------------------------------------------------
: To unsubscribe, e-mail: ####@####.####
: For additional commands, e-mail: ####@####.####
: 


Previous by date: 13 Dec 2001 17:28:51 -0000 Re: FLTK based desktop enviroment., Jeff Webb
Next by date: 13 Dec 2001 17:28:51 -0000 Re: How to calibrate the touch screen of iPaq?, Greg Haerr
Previous in thread: 13 Dec 2001 17:28:51 -0000 Re: Window Manager Queries, Jordan Crouse
Next in thread: 13 Dec 2001 17:28:51 -0000 Re: Window Manager Queries, Darran D. Rimron-Molloy


Powered by ezmlm-browse 0.20.