Files
cdesktop/cde/config/cf/site.def
Jon Trulson af7ba55f78 Add basic Xinerama support via new lib/DtXinerama
This adds a basic library and support to dtsession and dtlogin to
support Xinerama/Twinview, where multimple monitors are used to make
up an X11 screen.

The main goal here is to draw dialogs and such centered on a monitor,
rather than spread out over multiple monitors.

Might need to add sorting - as on my test system, what I would
consider monitor 0, appears to actually be monitor 1.  So a sort might
need to be added to sort the screens according to increasing x and y
offsets so it make sense to a user.

Also, this library is built statically and not documented.  Maybe it
could be 'filled' out and refactored/redesigned in the futre if need
be and suppoerted.

It is enabled via a define, CDE_USEXINERAMA in site.def.  It's a very
simple lib, so I do not expect any issues with the BSD's - it should
build and work fine, assuming your X server has the XINERAMA
extension, which I think pretty much all of them do at this point.
2013-03-26 19:49:50 -06:00

126 lines
3.1 KiB
Modula-2

XCOMM site: $TOG: site.def /main/23 1998/03/19 18:43:26 mgreess $
/***************************************************************************
* *
* X Consortium In-House Build Parameters *
* Use at Your Own Risk *
* *
***************************************************************************/
#ifndef SiteIConfigFiles
# define SiteIConfigFiles $(IRULESRC)/host.def
# define LocalConfigFiles host.def
#endif
#ifdef BeforeVendorCF
# include <host.def>
/* CDE uses a .C suffix for C++ source, not the default .cxx */
# define CCsuf C
/* We will import x11 and Motif. */
# define ImportX11 YES
# define ImportMotif YES
# ifndef TopLevelProject
# define TopLevelProject cde
# endif
/* On systems where cpp doesn't expand correctly macros in include directives
* the two following macros need to be defined directly (accordingly to the
* TopLevelProject macro defined above).
*/
# if defined(SunArchitecture) || defined(AIXArchitecture) \
|| defined(USLArchitecture) || defined(UXPArchitecture)
# ifndef ProjectRulesFile
# define ProjectRulesFile <cde.rules>
# endif
# ifndef ProjectTmplFile
# define ProjectTmplFile <cde.tmpl>
# endif
# endif
# ifdef AlphaArchitecture
# define HasDECCplusplus YES
# endif
# ifdef HPArchitecture
# define HasHPCplusplus YES
# endif
# if defined(SGIArchitecture)
# define MipsN32Architecture YES
# endif
# if defined(SunArchitecture)
# define HasSunCplusplus YES
# endif
# if defined(UXPArchitecture) || defined(USLArchitecture) \
|| defined(AIXArchitecture)
# define HasCplusplus YES
# endif
#endif /* BeforeVendorCF */
#ifdef AfterVendorCF
#ifndef X11ProjectRoot
# if defined(LinuxArchitecture)
# define X11ProjectRoot /usr
# elif defined(FreeBSDArchitecture)
# define X11ProjectRoot /usr/local
# elif defined(OpenBSDArchitecture)
# define X11ProjectRoot /usr/X11R6
# else
# define X11ProjectRoot /X11
# endif
#endif
#ifndef ProjectRoot
# define ProjectRoot /usr/dt
#endif
XCOMM build the DtXinerama support
#define CDE_USEXINERAMA YES
#ifdef SunArchitecture
# define DtLocalesToBuild de_DE.ISO8859-1 es_ES.ISO8859-1 fr_FR.ISO8859-1 it_IT.ISO8859-1
#endif
#ifdef UXPArchitecture
# define DtLocalesToBuild ja_JP.dt-eucJP
#endif
XCOMM Make sure you have installed the de_DE, es_ES, fr_FR and it_IT locales.
XCOMM or building non-C locales will cause build failures.
#if defined(LinuxArchitecture) || defined(FreeBSDArchitecture) || defined(OpenBSDArchitecture)
# define DtLocalesToBuild de_DE.ISO8859-1 es_ES.ISO8859-1 fr_FR.ISO8859-1 it_IT.ISO8859-1
#endif
#ifdef SunArchitecture
#define HasCodeCenter YES
#define HasTestCenter YES
#ifdef SparcArchitecture
#define HasPurify YES
#endif
#endif
#ifdef HPArchitecture
#define HasPurify YES
#endif
#ifdef __hp9000s800
#define HasCodeCenter YES
#define HasTestCenter YES
#endif
#ifdef SGIArchitecture
#if OSMajorVersion > 5
#define HasPurify YES
#endif
#endif
#endif /* AfterVendorCF */