Integrated: 6899304 : java.awt.Toolkit.getScreenInsets(GraphicsConfiguration) returns incorrect values

anass baya duke at openjdk.org
Fri Jan 31 18:32:53 UTC 2025


On Fri, 17 Jan 2025 20:51:09 GMT, anass baya <duke at openjdk.org> wrote:

> Screen number 0 is not always the primary screen, so we’ve removed the code that assumes it is.
> 
> We used an existing test and took the following considerations into account for Windows:
> 
> - On Windows, undecorated maximized frames are placed over the taskbar.
> - On Windows, the top-left corner of an undecorated maximized frame may have negative coordinates (x, y).
> - Consider the fractional part after scaling.

This pull request has now been integrated.

Changeset: 651ac3cc
Author:    anass baya <anass.baya at oracle.com>
URL:       https://git.openjdk.org/jdk/commit/651ac3cc0f2a8b3edf5cddb42df1d38d4aa0e1a6
Stats:     73 lines in 2 files changed: 34 ins; 23 del; 16 mod

6899304: java.awt.Toolkit.getScreenInsets(GraphicsConfiguration) returns incorrect values

Reviewed-by: aivanov, honkar, prr, serb

-------------

PR: https://git.openjdk.org/jdk/pull/23183


More information about the client-libs-dev mailing list