Register nameservers dynamically instead of writing them to disk. It is
[AROS.git] / rom / intuition / setpubscreenmodes.c
bloba64a73ca9ee179dd38768c42cd8dbd20ef1a152e
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_LH1(UWORD, SetPubScreenModes,
16 /* SYNOPSIS */
17 AROS_LHA(UWORD, modes, D0),
19 /* LOCATION */
20 struct IntuitionBase *, IntuitionBase, 91, Intuition)
22 /* FUNCTION
24 Specify global intuition public screen handling.
26 INPUTS
28 modes -- The new set of flags to consider. Currently defined flags are:
29 SHANGHAI Workbench windows are opened on the default
30 public screen.
31 POPPUBSCREEN When a visitor window opens on a public screen,
32 the screen is brought to front.
34 RESULT
36 The flags set before the change was made.
38 NOTES
40 EXAMPLE
42 BUGS
44 SEE ALSO
46 OpenScreen()
48 INTERNALS
50 HISTORY
52 24-06-98 SDuvan Implemented
54 *****************************************************************************/
56 AROS_LIBFUNC_INIT
58 UWORD retval;
60 Forbid();
61 retval = GetPrivIBase(IntuitionBase)->pubScrGlobalMode;
62 GetPrivIBase(IntuitionBase)->pubScrGlobalMode = modes;
63 Permit();
65 return retval;
67 AROS_LIBFUNC_EXIT
68 } /* SetPubScreenModes */