arosc.library: Centralized exit handling code in __arosc_startup.c
[AROS.git] / rom / intuition / wbenchtoback.c
blob400be7d86515a4a68b29aadde804833ce5e4a3ab
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
4 $Id$
5 */
7 #include "intuition_intern.h"
9 /*****************************************************************************
11 NAME */
12 #include <proto/intuition.h>
14 AROS_LH0(BOOL, WBenchToBack,
16 /* SYNOPSIS */
18 /* LOCATION */
19 struct IntuitionBase *, IntuitionBase, 56, Intuition)
21 /* FUNCTION
22 Bring the WorkBench behind all other screens.
24 INPUTS
26 RESULT
27 TRUE if the Workbench screen is open, FALSE else.
29 NOTES
30 This function does not influence the position of the screen,
31 it just changes the depth-arrangement of the screens.
33 EXAMPLE
35 BUGS
37 SEE ALSO
38 ScreenToBack(), ScreenToFront(), WBenchToFront()
40 INTERNALS
42 HISTORY
44 *****************************************************************************/
46 AROS_LIBFUNC_INIT
48 struct Screen *curscreen;
50 curscreen = GetPrivIBase(IntuitionBase)->WorkBench;
52 if ( curscreen )
54 ScreenToBack ( curscreen );
55 return TRUE;
57 else
59 return FALSE;
63 AROS_LIBFUNC_EXIT
64 } /* WBenchToBack */