Usage of `getBounds()` method instead `getVisualBounds()` was giving unreliable screen bound values and color value was read very close to the edge of the window.
Updated the code to use `getVisualBounds()` instead of `getBounds()` and moved the coordinates inside the window from where the color value is read. Ran the tests individually and along with all system tests in following systems. No failure found after the fix. Mac M1 with Ventura 13.3 Window 11 ------------- Commit messages: - Fix full screen test failure Changes: https://git.openjdk.org/jfx/pull/1103/files Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1103&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8306464 Stats: 4 lines in 1 file changed: 0 ins; 0 del; 4 mod Patch: https://git.openjdk.org/jfx/pull/1103.diff Fetch: git fetch https://git.openjdk.org/jfx.git pull/1103/head:pull/1103 PR: https://git.openjdk.org/jfx/pull/1103