United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4356756 : Need to return all screen devices when running in Xinerama mode

Details
Type:
Bug
Submit Date:
2000-07-26
Status:
Resolved
Updated Date:
2001-07-31
Project Name:
JDK
Resolved Date:
2001-07-31
Component:
client-libs
OS:
solaris_7
Sub-Component:
java.awt
CPU:
sparc
Priority:
P2
Resolution:
Fixed
Affected Versions:
1.4.0
Fixed Versions:
1.4.0 (beta2)

Related Reports
Relates:
Relates:

Sub Tasks

Description
Multiscreen systems, notably UNIX platforms using -Xinerama, have no way to distinguish between GraphicsDevices which represent actual physical display devices, and GraphicsDevices for a "virtual" display spanning several physical devices.  Client systems such as Java3D need to be able to make this distinction.  java.awt.GraphicsDevice enhancements akin to the following would remedy this situation:

/**
 * Returns true if this GraphicsDevice represents physical display hardware,
 * false if it represents a "virtual" display.
 */
public boolean isPhysicalDevice();

/**
 * This method returns an array of the physical GraphicsDevices spanned by
 * a virtual display.  If called on a GraphicsDevice which is itself a
 * physical display, rather than a virtual display, this method simply returns
 * a single-element array with a reference to itself.
 */
public GraphicsDevice[] getPhyicalScreens()


One is issue is how these methods should be implemented for printers.

                                    

Comments
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
merlin-beta2

FIXED IN:
merlin-beta2

INTEGRATED IN:
merlin-beta2


                                     
2004-06-14
EVALUATION

This needs to be done for Merlin.  Committing.
brent.christian@eng 2000-07-26

This is a bug in GraphicsEnvironment.getScreenDevices().  When run on an X server running in Xinerama mode, only one GraphicsDevice is returned, representing the entire virtual desktop.  A separate GraphicsDevice should be returned for each physical display, as it is on Win32 and non-Xinerama X11.
brent.christian@eng 2000-11-15

No resources for beta.  We'll have to fix this in beta-refresh.  
eric.hawkes@eng 2001-04-17
                                     
2000-11-15



Hardware and Software, Engineered to Work Together