<AWT Dev>  Review request for JDK-8017472 [macosx] Transparency demo is not correctly dragged on the second monitor
Sergey.Bylokhov at oracle.com
Mon Feb 10 02:16:50 PST 2014
The fix looks good.
A few notes about the test:
- You should use realSync+sleep after setVisible().
- The native system can change the size of the frame after setVisble();
On 10.02.2014 12:26, Alexander Zvegintsev wrote:
> Hello AWT team,
> please review fix
> Another issue was closed as a duplicate of this one, but it has a
> better self-explaining title:
> MouseEvent has wrong coordinates when using multiple monitors
> From mainScreen documentation:
>> The main screen is not necessarily the same screen that contains the
>> menu bar or has its origin at (0, 0).
>> The main screen refers to the screen containing the window that is
>> currently receiving keyboard events.
> absY should be calculated relative to a primary screen
> According to documentation primary screen can be obtained by call
> [[NSScreen screens] objectAtIndex:0]:
> The screen at index 0 in the returned array corresponds to the primary
> screen of the user’s system.
Best regards, Sergey.
More information about the awt-dev