JDK-6565121 : option to use external libXinerama
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: generic
  • Submitted: 2007-06-04
  • Updated: 2011-01-19
  • Resolved: 2007-10-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Related Reports
Duplicate :  
Relates :  

Contributor notes:

Yet another external patch, the attached one adds an EXTERNAL_XINERAMA
option that allows to link to the system's libXinerama library rather
than using the internal copy of it.

I hoped that doing so would have fixed jconsole appearing between the
two screens, but it didn't do so (gonna debug it soon); in the mean
time it's still a nice thing to use it shared, as for those who
actually use Xinerama, the library is for sure already loaded at any
given time.

The patch is available in the Evaluation.

EVALUATION With the fix for 6532373, the JDK uses the external libXinerama only.

EVALUATION Index: openjdk/j2se/make/sun/awt/mawt.gmk =================================================================== --- openjdk.orig/j2se/make/sun/awt/mawt.gmk +++ openjdk/j2se/make/sun/awt/mawt.gmk @@ -58,7 +58,11 @@ else FILES_c += $(TARGDIR)awt_motif21.c FILES_c += $(TARGDIR)awt_Choice21.c ifeq ($(PLATFORM), linux) + ifeq ($(EXTERNAL_LIBXINERAMA), true) + LIBXINERAMA = -lXinerama + else FILES_c += $(TARGDIR)Xinerama.c + endif endif endif @@ -179,7 +183,7 @@ ifeq ($(PLATFORM), linux) OTHER_CFLAGS += -DMLIB_NO_LIBSUNMATH OTHER_CFLAGS += -DMOTIF_VERSION=2 OTHER_CFLAGS += -DXMSTRINGDEFINES=1 -OTHER_LDLIBS = $(LIBXM) $(LIBXMU) $(LIBXTST) -lXext $(LIBXT) $(LIBSM) $(LIBICE) -lX11 -lXi +OTHER_LDLIBS = $(LIBXM) $(LIBXMU) $(LIBXTST) $(LIBXINERAMA) -lXext $(LIBXT) $(LIBSM) $(LIBICE) -lX11 -lXi endif endif Index: openjdk/j2se/make/sun/xawt/Makefile =================================================================== --- openjdk.orig/j2se/make/sun/xawt/Makefile +++ openjdk/j2se/make/sun/xawt/Makefile @@ -53,7 +53,11 @@ AUTO_JAVA_PRUNE = WrapperGenerator.java LDFLAGS += -L$(OPENWIN_LIB) ifeq ($(PLATFORM), linux) +ifeq ($(EXTERNAL_LIBXINERAMA), true) +LDFLAGS += -lXinerama +else FILES_c += Xinerama.c +endif LDFLAGS += -lpthread dummy := $(shell $(MKDIR) -p $(LIB_LOCATION)) endif