<AWT Dev> [9] Review request for 8163101: dual-screen issue with JMenu, JPopupMenu

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Fri Sep 23 18:26:07 UTC 2016

On 23.09.16 21:07, Semyon Sadetsky wrote:
>> The current bug in popup menu is that it relied on the incorrect
>> behavior of the toolkit method, which right now returns the size of
>> the virtual screen(and returns something strange in case of
>> HiDPI+nonHiDPi screens).
> It is not clear yet that behavior of the toolkit method is incorrect. At
> least, that it will be changed in 9. Anyway, this is a separate issue.
> Could you clarify about "HiDPI+nonHiDPi screens"? What did you get?

Just check what value will be returned if the system have two displays 
and each will have own scale, the result will be downscaled based on 
default config.
We have two bugs:
  - This bug is about menu related code, it should care about bounds of 
gc where these popup will be shown, it should not use the method which 
return the bounds of the primary screen. In current fix the location 
will be incorrect if Xinerama is disabled and menu will be shown on 
non-primary screen, if this screen have different scale from main display.
  - The toolkit method should be reworked.

Best regards, Sergey.

More information about the awt-dev mailing list