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

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Fri Sep 23 16:31:45 UTC 2016

On 23.09.16 19:22, Semyon Sadetsky wrote:
>> Because it should return the bounds of the primary screen, not
>> "combined virtual screen". Also its spec should be updated to mention
>> units instead of real pixels which differs in HiDPI.
> Screen is a platform dependent term. In case Xinerama is on there is
> only one screen in multi-monitor configuration. In this case individual
> monitor parameters still can be get using special Xrandr library but for
> window manager there is only one screen (combined). Since java toolkit
> communicates to WM it should use WM's "language".

Screen in our specification is a our own term. We have GraphicsDevice 
per screen. We have s special notion about "combined virtual screen" 
which "share the same coordinate system". Our methods and specification 
are not depends from the native WM implementation. In the current 
discussion toolkit should return the bounds of the primary screen which 
is default GraphicsDevice. So in the current fix the code related to 
popup menu should be updated. The new bug should be filed against toolkit.

Best regards, Sergey.

More information about the awt-dev mailing list