<AWT Dev> [9] Review request for 8163101: dual-screen issue with JMenu, JPopupMenu
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Wed Oct 19 15:26:11 UTC 2016
On 17.10.16 10:35, Semyon Sadetsky wrote:
>> It should not be closed as not a bug, the location of the popus should
>> be recalculated based on the GC size.
> As I already explain to you it should be a separate bug. GC is assumed
> to be changed when window is moved to another screen but this doesn't
> happen on Linux. It was initially designed this way.
> This current bug is a regression fix. It just reverts the way it has
> been always working.
The code which you tried to revert if not correct. The previous change
was done as a fix for HiDPI support. Lots of our code depends from the
XWindow.scaleUp/scaleDown/getScale which ware implemented on top of
graphicsConfig. If it was not updated then this is a serious bug.
I filed a separate bug to fix Toolkit.getScreenSize() on unix.
https://bugs.openjdk.java.net/browse/JDK-816830
--
Best regards, Sergey.
More information about the awt-dev
mailing list