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.
This commit is contained in:
@@ -4,6 +4,11 @@ XCOMM $TOG: Imakefile /main/21 1999/03/01 18:26:06 mgreess $
|
||||
|
||||
SUBDIRS = config $(XDMSUBDIRS) $(BLSSUBDIRS) $(AFSSUBDIRS)
|
||||
|
||||
#if CDE_USEXINERAMA
|
||||
XINOPT = -DUSE_XINERAMA
|
||||
XINLIB = -lDtXinerama -lXinerama
|
||||
#endif
|
||||
|
||||
MakeSubdirs($(SUBDIRS))
|
||||
DependSubdirs($(SUBDIRS))
|
||||
|
||||
@@ -122,6 +127,8 @@ SYS_LIBRARIES = -lm -lXdmcp
|
||||
|
||||
#if defined(LinuxArchitecture) || defined(FreeBSDArchitecture)
|
||||
SYS_LIBRARIES = -lm -lcrypt
|
||||
EXTRA_DEFINES = $(XINOPT)
|
||||
LOGINXLIB = $(XLIB) $(XINLIB)
|
||||
/* just use the system provided Xau and Xdmcp*/
|
||||
DEPXAUTHLIB =
|
||||
DEPXDMCPLIB =
|
||||
@@ -293,9 +300,9 @@ EXTRA_RES_DEFINES = \
|
||||
|
||||
BASE_LIBS1 = $(XAUTHLIB) $(LOGINXMULIB) $(XDMCPLIB) $(LOGINXLIB)
|
||||
BASE_LIBS2 = $(DTWIDGETLIB) $(DTSVCLIB) $(TTLIB) $(XMLIB) \
|
||||
$(XTOOLLIB) $(XPLIB) $(XLIB)
|
||||
$(XTOOLLIB) $(XPLIB) $(XLIB) $(XINLIB)
|
||||
BASE_LIBS3 = $(DTWIDGETLIB) $(DTSVCLIB) $(TTLIB) $(XDMCPLIB) $(XMLIB) \
|
||||
$(XTOOLLIB) $(XPLIB) $(XLIB)
|
||||
$(XTOOLLIB) $(XPLIB) $(XLIB) $(XINLIB)
|
||||
|
||||
LOCAL_LIBRARIES1 = $(BASE_LIBS1) $(IAFSYSLIB)
|
||||
LOCAL_LIBRARIES2 = $(BASE_LIBS2)
|
||||
|
||||
Reference in New Issue
Block a user