On Wed, 30 Apr 2025 15:06:48 GMT, Alexander Zvegintsev <azveg...@openjdk.org> wrote:
>> These failures when moving to the offscreen point are actually because the >> new onscreen point being moved to is closer distance-wise than the onscreen >> point it would have moved to before the fix. > > I think it doesn't look like expected behavior anyway, the pre-clamping one > seems more reasonable to me (as for Linux, haven't tested other platforms). > > Anyway, if the we are only having issues getting the mouse pointer > coordinates after moving it off-screen on macos, I guess the fix shouldn't > change shared code and other platforms. Linux tries to respect one of the bounds if it can, while my code just looks for the closest point across all screens. I think both are reasonable, but I've moved the code into macOS code so the behavior isn't changed on different platforms. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/22781#discussion_r2072709435