RFR: 6899304 : java.awt.Toolkit.getScreenInsets(GraphicsConfiguration) returns incorrect values [v2]

Alexey Ivanov aivanov at openjdk.org
Fri Jan 24 19:43:46 UTC 2025


On Thu, 23 Jan 2025 23:31:26 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:

> Based on [GetMonitorInfo](https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getmonitorinfoa) API doc, it seems fine to use this API to query monitor info for both primary and non-primary monitors but I'm not sure why original code used `SystemParametersInfo()` specifically instead of `GetMonitorInfo()` for primary monitor.

Likely it's because of legacy… `SystemParametersInfo()` had existed before `GetMonitorInfo()` was introduced.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23183#discussion_r1929155357


More information about the client-libs-dev mailing list