On Thu, 23 Jan 2025 23:31:26 GMT, Harshitha Onkar <hon...@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