-
Bug
-
Resolution: Unresolved
-
P4
-
7
-
None
The code in sun.awt.X11.XCanvasPeer#getAppropriateGraphicsConfiguration() that attempts to get a GraphicsConfiguration with the same visual on the "new" screen seems to incorrectly rely on the screen number to do so.
There are two cases to consider:
* If the list of devices was not changed then the "screenid" for old device is the index of that "old" device in the device array. So the new and old devices are the same.
* If the list of devices was changed, then the "screenid" for the old device was invalidated, and it is again an index of that "old" device in the device array.
Also I do not think that we can change the "requested device" in this method. The purpose of this method is to request the best "GC" from the device passed as a parameter(via another GC).
There are two cases to consider:
* If the list of devices was not changed then the "screenid" for old device is the index of that "old" device in the device array. So the new and old devices are the same.
* If the list of devices was changed, then the "screenid" for the old device was invalidated, and it is again an index of that "old" device in the device array.
Also I do not think that we can change the "requested device" in this method. The purpose of this method is to request the best "GC" from the device passed as a parameter(via another GC).
- relates to
-
JDK-6804747 Ensure consistent graphicsConfig member across components hierarchy
-
- Closed
-