Closes a window. Depending on the display, this might not happen at the time when this function returns, but you must not use the window pointer after this function has been called.
INPUTS
window
The window to close
RESULT
None.
EXAMPLE
SEE ALSO
OpenWindow(), OpenWindowTags()
NOTES
The window might not have been disappeared when this function returns.
BUGS
INTERNALS
HISTORY
02.04.1999 nlorentz
CloseWindow() now waits for intuition to close window before it returns
26.03.1999 nlorentz
Call int_activatewindow() instead of ActivateWindow()
24.03.1999 nlorentz
Minor fix
19.03.1999 nlorentz
Fixed race condition bug between CloseWindow()/inputhandler by doing most of window closing on inputhandlers context. Also Closewindow() was called direcly from inputhandler, that would cause FreeSignal() in DeleteMsgPort() to be called on the wrong task context
31.12.1998 nlorentz
Bugfix: CloseWindow should no longer free win->RPort as that is done in intui_CloseWindow()
20.10.1998 hkiel
Amiga Research OS
16.01.1998 hkiel
Always #undef DEBUG to assure proper behaviour with cpak
05.01.1998 hkiel
Added masquerade to #include <aros/debug.h> for cpak.
27.01.1997 ldp
Polish
10.12.1996 aros
Moved #include into first column to allow makedepend to see it.
08.11.1996 aros
All OS function use now Amiga types
Moved intuition-driver protos to intuition_intern.h
31.10.1996 aros
Don't forget to free the RastPort
24.10.1996 aros
Use the official AROS macros over the __AROS versions.
15.10.1996 digulla
Two new functions: LockIBase() and UnlockIBase()
Modified code to make sure that it is impossible to access illegal data (ie.
fields of a window which is currently beeing closed).
21.09.1996 digulla
Debug code
Only change the ActiveWindow is it is beeing closed
Search for a new ActiveWindow
29.08.1996 digulla
Moved common code from driver to Intuition
More docs